Fonts on different Windows versions

Fonts on different Windows versions

Postby Otto » Thu Apr 01, 2010 11:47 am

I noticed that MS Reference Sans Serif the FONT I use in all my DIALOGS is not an automatically installed WINDOWS 7 FONT.

AddFontResource( cFontFileName )
My test showed that AddFontResource adds the font only temporarily also if you run your program as admin.

What is the best way to change to available fonts or make resources flexible?

Thanks in advance
Otto


http://msdn.microsoft.com/en-us/library/aa511282.aspx#guidelines

Fonts and colors
•The following fonts and colors are defaults for Windows Vista and Windows 7. Pattern Theme symbol Font, Color
CaptionFont 9 pt. black (#000000) Segoe UI
MainInstruction 12 pt. blue (#003399) Segoe UI
Instruction 9 pt. black (#000000) Segoe UI
BodyText 9 pt. black (#000000) Segoe UI
BodyText 9 pt. black (#000000) Segoe UI, bold or italic
BodyText 9 pt. black (#000000) Segoe UI, in a box
Disabled 9 pt. dark gray (#323232) Segoe UI
HyperLinkText 9 pt. blue (#0066CC) Segoe UI
Hot 9 pt. light blue (#3399FF) Segoe UI
11 pt. blue (#003399) Segoe UI
11 pt. black (#000000) Segoe UI
(none) 9 pt. black (#000000) Calibri
(none) 17 pt. black (#000000) Calibri
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: Fonts on different Windows versions

Postby José Luis Sánchez » Fri Apr 02, 2010 6:14 pm

The best thing you can do is that your program takes the Windows default font. See this post http://www.avemundi.com/?p=216
Regards,
User avatar
José Luis Sánchez
 
Posts: 556
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España

Re: Fonts on different Windows versions

Postby Otto » Fri Apr 02, 2010 7:07 pm

Hello José,

Thank you for your answer.
I tried and I will change to WINDOWS default font.
GETSYSFONTSIZE() returns on my system 16 and GetDefaultFontHeight() a value of -11
Do you know how to define the font for example for the MainInstruction?

•The following fonts and colors are defaults for Windows Vista and Windows 7. Pattern Theme symbol Font, Color
CaptionFont 9 pt. black (#000000) Segoe UI
MainInstruction 12 pt. blue (#003399) Segoe UI



Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 104 guests