Thread: UI Font size
View Single Post
  #2  
Unread 03-20-2005, 11:11 AM
SOE_Bobble SOE_Bobble is offline
EQII Developer
Yes this person is from Daybreak!
 
Join Date: Aug 2004
Posts: 82
Default Font explanation

Slaxer.

I'd be happy to help if you loaned me your HDTV for a few weeks.

I'm not sure there has ever been a good explanation of the two types of fonts. So here it is.

EQII uses fonts from bitmaps (uses BuildFont to create the image and the xml) and system fonts (cached on the fly.) You can tell the difference by looking at the TextStyle -- if the style contains FontCharacters, it is a bitmap font. If the style contains "UseCachedFont=true" then it is a system font.

Bitmap fonts:
Obviously you can't change the size of the bitmap fonts without creating a new copy. If you really want to do this, start playing around with BuildFont.
One nice thing about these fonts is that you can customize the advance.
One not so nice thing is that Chinese is really hard to do this way.

Cached fonts:
These fonts are built on the fly. The PointSize property is used to determine the size. You can change the Algorithm property - Simple, Bold, Italics.
One nice thing about these fonts is that the size can be changed on the fly.
One not so nice thing is that some people may not have the desired font installed and then the operating system gets to pick the font.


So to answer your question, change the UseCachedFont property of the TextStyles to true and increase the PointSize a bit. Then as long as things fit into the text area, you'll be good to go.


Bonus information:
Why is there a copy of the font for Euro, Japan, Chinese that isn't used?
If you start up a localized version of EQII, the fonts are automagically swapped.


MrBobble
Reply With Quote