VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Font List For Each Language

Gil Shabthai  (7 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

With this code you will be able to select one or more language from a list , and then to get all the fonts that was installed on the operating system which support the languages that was chosen.
So if you want to develop a word prossesor maybe you will find it useful - to change the font list when the user had change the language. some part of it i had found on the net ( I dont know who is the Auther) and more help from the MSDN.

API Declarations
Public Declare Function GetLocaleInfoA Lib "kernel32" (ByVal LCID As Long, ByVal LCType As Long, ByVal lpData As String, ByVal cchData As Integer) As Integer '*
Public Declare Function TranslateCharsetInfo Lib "gdi32" (lpSrc As Long, lpcs As CHARSETINFO, ByVal dwFlags As Long) As Long '*
Public Declare Function EnumFontFamiliesEx Lib "gdi32" Alias "EnumFontFamiliesExA" (ByVal hDC As Long, lpLogFont As LOGFONT, ByVal lpEnumFontProc As Long, ByVal LParam As Long, ByVal dw As Long) As Long

Rate Font List For Each Language (3(3 Vote))

Download Font List For Each Language

Font List For Each Language Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters