Link to home
Start Free TrialLog in
Avatar of sasot
sasot

asked on

How to get system default font

Does anybody know how to get system default character set. I know how to get local settings with
GetLocaleInfoA API function, however I know only how to get current regional settings and not the default settings.
(i.e. the setting that is set by Regional Options/General/Set Default).
Avatar of altena
altena

In windows XP I could not find the setting you specify, so I am hesitant to answer and lock the question for others. Please explain whether the question is about the default font (as in the question's title) or about the default regional settings (as in your explanation).
Avatar of sasot

ASKER

The problem is about system default language setting. This setings affects the system fonts and the code page (character set) used in menus.

What I want is, to detect this setings. If the setings allows i.e. cyrilic, the menus wiil be in Russian language, and if cyrilic is not supported in menus, menus will be in english.

Regards
Avatar of sasot

ASKER

Hello,

in mean time I faund the solution myself. There are two functions:

Declare Function GetSystemDefaultLCID% Lib "kernel32" ()
Declare Function GetUserDefaultLCID% Lib "kernel32" ()

The first return the code of system language and the second the code of user language default setting.

Maby it will be of some use for somebody else.

Regards
You can ask a moderator for help, to get a refund for your points.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- refund/PAQ
Please leave any comments here within the
next seven days.
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial