Español
Fuente/ Codesnippets

Existenz uno Font/Schrift prüfen sin EnumFontFamiliesEx

 

Sven
Bader
Como el Windows API Función EnumFontFamiliesEx algo unhandlich es, Yo una Profano-Solución esta gebaut. Lo funktioniert rápidamente y zuverlässig.
Cls
Declarar fontList$'con uno globalen Variable necesario wir el Liste sólo una vez generieren

Proc FontExists

    Parámetros font$

    If (fontList$ = "")'gibts ya una Liste?

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

    Endif

    Volver (InStr("##" + lower$(font$ )+ "##", fontList$) > 0)'sólo genaue Treffer, welche de Trennzeichen eingeschlossen son

ENDPROC

Imprimir Arial Black:      " + if(FontExists(Arial Black"), "existiert", "fehlt")
Imprimir "Consolas:         " + if(FontExists("Consolas"), "existiert", "fehlt")
Imprimir "Courier New:      " + if(FontExists("Courier New"), "existiert", "fehlt")
Imprimir "qwertzuiop:       " + if(FontExists("qwertzuiop"), "existiert", "fehlt")
Waitkey
End
 
22.02.2023  
 




Georg
Teles
Nabend,

bastante simpel aber genial

para XProfan X4 entonces Move(...  nehmen
fontList$ = "##" + lower$(MoveListToStr$("##")) + "##"'X2
fontList$ = "##" + lower$(Move("ListToStr", "##")) + "##"'X4

Grüße
 
Alle Sprachen
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

22.02.2023  
 



Zum Quelltext


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

1.413 Views

Untitledvor 0 min.
Thomas Zielinski28.06.2023
Wilfried Friebe28.05.2023
Alibre01.05.2023
p.specht22.03.2023
Más...

Themeninformationen

Dieses Thema ha 2 subscriber:

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


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie