Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Fontnamen und Font-Familie: was ist mit @xyz-Fonts? (https://www.delphipraxis.net/133775-fontnamen-und-font-familie-ist-mit-%40xyz-fonts.html)

ULIK 8. Mai 2009 11:45


Fontnamen und Font-Familie: was ist mit @xyz-Fonts?
 
Hallo,

wenn ich mir z.B. mit dem FontDialog eine Liste der installierten Fonts anzeigen lasse, so tauchen dort so nette Fonts auf wie @Batang, @Dotum, @Gulim. Das ist soweit ok, da auf dem Rechner die Unterstützung für die diversen asiatischen etc. Sprachen installiert ist.
Für eine Grafikausgabe mittels GDIPlus versuche ich nun, mittels des Fontnamens die zugehörige Fontfamilie zu bestimmen (GdipCreateFontFamilyFromName). Sobald ich nun einen dieser @xyz Fonts verwende, schlägt das fehl (FontFamily not found).

Meine Frage: was sind das eigentlich für Fonts (es scheint ja auch immer zugehörige Fonts ohne das vorgstellte @ zu geben; unterscheiden die sich irgendwie?). Und kann man zur Bestimmung der Fontfamilie eventuell immer das @weglassen (also Batang statt @Batang verwenden)? Oder allgemein: wie bekomme ich die Fontfamilie von @Batang?



Grüße,
Uli

himitsu 8. Mai 2009 11:55

Re: Fontnamen und Font-Familie: was ist mit @xyz-Fonts?
 
Hier im Forum suchenFontname > Bedeutung von Fonts mit "@" am Anfang des Namens


wie man aber an die Font-Familie rankommt ... :gruebel:

ULIK 8. Mai 2009 12:22

Re: Fontnamen und Font-Familie: was ist mit @xyz-Fonts?
 
Danke! (Manchmal sucht man einfach nach den falschen Begriffen :( )
Das hat schon mal einiges geklärt.


Grüße,
Uli

ULIK 8. Mai 2009 13:51

Re: Fontnamen und Font-Familie: was ist mit @xyz-Fonts?
 
So, nun bin noch etwas weiser :-)

die GDI+-Funktion GdipCreateFontFamilyFromName kann anscheinend aus dem Namen nicht immer die Familie bestimmen. Was aber klappt ist, wenn man zuerst einen GDI+ Font aus einem GDI Font gleichen Namens erstellt (GdipCreateFontFromDC) und dann mit GdipGetFamily dessen Familie bestimmt.
Damit klappte es nun bei mir ohne Probleme.


Grüße,
Uli


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:39 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz