How do I set the default font in DOCX?

Home » Outlook addins and plugins development » Developer Outlook add-ins
How do I set the default font in DOCX? [message #297851] Sun, 04 May 2008 23:40 Go to next message
David Thielen  is currently offline David Thielen
Messages: 1062
Registered: June 2006
Senior Member
In WordML we have

<w:fonts>
<w:defaultFonts w:ascii="Arial" w:h-ansi="Arial" w:fareast="Arial"
w:cs="Arial"/>

So that any run with no font will then use Arial. How can I set the
same in DOCX?

thanks - dave

david@at-at-at>@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
RE: How do I set the default font in DOCX? [message #298188] Tue, 06 May 2008 04:20 Go to previous message
jialge  is currently offline jialge
Messages: 855
Registered: July 2007
Senior Member
Hello Dave,

In DOCX, the equivalent of defaultFonts is "theme"

You can find it in theme1.xml:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Broadway" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

And in Word 2007, the corresponding theme definition dialog can be opened
by going to Page Layout tab -> Themes -> Fonts.

So if you want to run with no font will then use Arial "for latin body
text", we can set it as this:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Arial" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

Let me know if you have any other concerns or questions
Have a nice day!
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



RE: How do I set the default font in DOCX? [message #302087] Tue, 06 May 2008 04:20 Go to previous message
jialge  is currently offline jialge
Messages: 855
Registered: July 2007
Senior Member
Hello Dave,

In DOCX, the equivalent of defaultFonts is "theme"

You can find it in theme1.xml:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Broadway" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

And in Word 2007, the corresponding theme definition dialog can be opened
by going to Page Layout tab -> Themes -> Fonts.

So if you want to run with no font will then use Arial "for latin body
text", we can set it as this:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Arial" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

Let me know if you have any other concerns or questions
Have a nice day!
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: How do I set the default font in DOCX? [message #302586] Tue, 06 May 2008 04:20 Go to previous message
jialge  is currently offline jialge
Messages: 855
Registered: July 2007
Senior Member
Hello Dave,

In DOCX, the equivalent of defaultFonts is "theme"

You can find it in theme1.xml:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Broadway" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

And in Word 2007, the corresponding theme definition dialog can be opened
by going to Page Layout tab -> Themes -> Fonts.

So if you want to run with no font will then use Arial "for latin body
text", we can set it as this:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Arial" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

Let me know if you have any other concerns or questions
Have a nice day!
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: How do I set the default font in DOCX? [message #303084] Tue, 06 May 2008 04:20 Go to previous message
jialge  is currently offline jialge
Messages: 855
Registered: July 2007
Senior Member
Hello Dave,

In DOCX, the equivalent of defaultFonts is "theme"

You can find it in theme1.xml:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Broadway" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

And in Word 2007, the corresponding theme definition dialog can be opened
by going to Page Layout tab -> Themes -> Fonts.

So if you want to run with no font will then use Arial "for latin body
text", we can set it as this:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Arial" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

Let me know if you have any other concerns or questions
Have a nice day!
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: How do I set the default font in DOCX? [message #303564] Tue, 06 May 2008 04:20 Go to previous message
jialge  is currently offline jialge
Messages: 855
Registered: July 2007
Senior Member
Hello Dave,

In DOCX, the equivalent of defaultFonts is "theme"

You can find it in theme1.xml:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Broadway" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

And in Word 2007, the corresponding theme definition dialog can be opened
by going to Page Layout tab -> Themes -> Fonts.

So if you want to run with no font will then use Arial "for latin body
text", we can set it as this:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Arial" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

Let me know if you have any other concerns or questions
Have a nice day!
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: How do I set the default font in DOCX? [message #304097] Tue, 06 May 2008 04:20 Go to previous message
jialge  is currently offline jialge
Messages: 855
Registered: July 2007
Senior Member
Hello Dave,

In DOCX, the equivalent of defaultFonts is "theme"

You can find it in theme1.xml:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Broadway" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

And in Word 2007, the corresponding theme definition dialog can be opened
by going to Page Layout tab -> Themes -> Fonts.

So if you want to run with no font will then use Arial "for latin body
text", we can set it as this:

- <a:fontScheme name="MyCustomTheme">
- <a:majorFont>
<a:latin typeface="Britannic Bold" />
<a:ea typeface="华文新魏" />
<a:cs typeface="" />
</a:majorFont>
- <a:minorFont>
<a:latin typeface="Arial" />
<a:ea typeface="华文中宋" />
<a:cs typeface="" />
</a:minorFont>
</a:fontScheme>

Let me know if you have any other concerns or questions
Have a nice day!
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Previous Topic:indents, one more exception...
Next Topic:adding picture to MsoBarPosition.msoBarPopup
Goto Forum:
  


 
   
  
 
Top Outlook add-ins
Duplicate Email RemoverDuplicate Email Remover

Delete duplicate emails and posts in Outlook and Microsoft Exchange folders.

Duplicates Remover for OutlookDuplicates Remover for Outlook

Delete duplicates in Microsoft Outlook and Microsoft Exchange Server folders.

Genius Connect - MailGenius Connect - Mail

Store Outlook or Exchange mail in any SQL Database.

PlainSight Desktop CalendarPlainSight Desktop Calendar

Pretty desktop calendar integrates wallpaper, weather forecasts, Outlook.

Total 162 add-ins for Outlook
in 11 categories.

Latest news
  

© 2006-2008 Office Assistance LLC