[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Change the default fonts

  • Thread starter Thread starter Matt Gilarde
  • Start date Start date
Status
Not open for further replies.
M

Matt Gilarde

Guest
When you set DefaultFont you tell us a typeface (Arial, Noto, etc.), a size in points, and other optional attributes such as bold, italic, underline, etc. All of those things together specify a font. We ask Windows to create the font and then we ask Windows how big characters in that font are in pixels. Different fonts can have different heights and widths even if the size you tell us is the same. For example, the default font is MS Sans Serif, size=8 and the default fixed font is Courier New, size=8. Size=8 isn't enough to tell us how tall or wide a character in that font will be. We have to create the font and ask it how big it is. The average width of a character in Courier New is wider than the average width of a character in MS Sans Serif. If your case, the average width of a character in Noto is wider than the average width of a character in Arial.

Continue reading...
 
Status
Not open for further replies.
Back
Top