English
Source / code snippets

existence of/ one Font/Font Verify without EnumFontFamiliesEx

 

Sven
Bader
there The Windows API function EnumFontFamiliesEx something unhandlich is, have I a Profan-Solution this built. it functions quick and reliably.
Cls
Declare fontList$'with of/ one global Variable must we The list only once Generate

Proc FontExists

    Parameters font$

    If (fontList$ = "")'Gibts already a list?

        ClearList
        AddFonts
        fontList$ = "##" + lower$(MoveListToStr$("##")) + "##"

    Endif

    Return (InStr("##" + lower$(font$ )+ "##", fontList$) > 0)'only detailed hits, which of Separator locked in are

ENDPROC

Print "Arial Black:      " + if(FontExists("Arial Black"), "existiert", "fehlt")
Print "Consolas:         " + if(FontExists("Consolas"), "existiert", "fehlt")
Print "Courier New:      " + if(FontExists("Courier New"), "existiert", "fehlt")
Print "qwertzuiop:       " + if(FontExists("qwertzuiop"), "existiert", "fehlt")
Waitkey
End
 
02/22/23  
 




Georg
Teles
Nabend,

quite simply but genial

for XProfan X4 then Move(...  take
fontList$ = "##" + lower$(MoveListToStr$("##")) + "##"'X2
fontList$ = "##" + lower$(Move("ListToStr", "##")) + "##"'X4

Regards
 
Alle Sprachen
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

02/22/23  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.411 Views

Untitledvor 0 min.
Thomas Zielinski06/28/23
Wilfried Friebe05/28/23
Alibre05/01/23
p.specht03/22/23
More...

Themeninformationen

this Topic has 2 subscriber:

Georg Teles (1x)
Sven Bader (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie