Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsFontFamilyMBS class.

WindowsFontFamilyMBS.AllFonts as WindowsFontFamilyMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Fonts MBS Win Plugin 11.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries all fonts on this windows machine.
Example
dim lines(-1) as string

for each f as WindowsFontFamilyMBS in WindowsFontFamilyMBS.AllFonts
lines.append f.LogFontFullName
next

MsgBox Join(lines,EndOfLine)

Font list is queried from OS and not cached, so this should update if new fonts are activated.

Uses EnumFontFamiliesW function, see
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-enumfontfamiliesw

See also:

Some examples using this method:

WindowsFontFamilyMBS.AllFonts(fonts() as WindowsFontFamilyMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Fonts MBS Win Plugin 11.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries all fonts on this windows machine.

Returns the number of fonts found and sets the font objects in the array.
if the array is too short, you get the first ubound(fonts)+1 fonts set there.

Font list is queried from OS and not cached, so this should update if new fonts are activated.

See also:

WindowsFontFamilyMBS.AllFontsEx as WindowsFontFamilyMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Fonts MBS Win Plugin 20.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries all fonts on this windows machine.
Example
dim lines(-1) as string

for each f as WindowsFontFamilyMBS in WindowsFontFamilyMBS.AllFontsEx
lines.append f.LogFontFullName
next

MsgBox Join(lines,EndOfLine)

Font list is queried from OS and not cached, so this should update if new fonts are activated.

Uses EnumFontFamiliesExW function, see
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-enumfontfamiliesexw

WindowsFontFamilyMBS.FontsOfFamily(family as string) as WindowsFontFamilyMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Fonts MBS Win Plugin 11.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries all fonts of the given font family on this windows machine.

See also:

Some examples using this method:

WindowsFontFamilyMBS.FontsOfFamily(family as string, fonts() as WindowsFontFamilyMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Fonts MBS Win Plugin 11.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries all fonts of the given font family on this windows machine.

Returns the number of fonts found and sets the font objects in the array.
if the array is too short, you get the first ubound(fonts)+1 fonts set there.

See also:

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...