Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Font mit Delphi Installieren (https://www.delphipraxis.net/15688-font-mit-delphi-installieren.html)

lordcroc 2. Feb 2004 17:16


Font mit Delphi Installieren
 
Hallo,

ist es möglich mit Delphi einen Font zu installieren, da das kopieren einer TTF Datei in das Fonts verzeichnis nicht ausreicht. Wenn ich Die Datei einfach reinkopiere und dann Öffne zeigt er mir nicht diesen Beispiel Text. Vielleicht gibts ja irgendwie Ne API oder Delphi Funktion. hab schon in der OH und im PSDK gesucht aber nix gefunden.

mfg
Lordcroc

IcyT 2. Feb 2004 17:20

Re: Font mit Delphi Installieren
 
Wie wäre es mit: AddFontResource?
Code:
int AddFontResource(

    LPCTSTR lpszFilename    // pointer to font-resource filename
   );   
 

Parameters

lpszFilename

Pointer to a null-terminated character string that contains a valid font file filename. The filename may specify either a .FON font resource file, a .FNT raw bitmap font file, a .TTF raw TrueType file, or a .FOT TrueType resource file.

lordcroc 2. Feb 2004 17:24

Re: Font mit Delphi Installieren
 
@IcyT
Danke werde ich gleich ma ausprobieren, muss ich aber trotzdem die TTF DAtei ins Fontsverzeichnis kopieren oder kann ich darauf verzichten?

lordcroc 2. Feb 2004 17:47

Re: Font mit Delphi Installieren
 
Funktioniert Supi Danke

IcyT 2. Feb 2004 18:27

Re: Font mit Delphi Installieren
 
Gern geschehen :-D


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:58 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