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 Registrieren (https://www.delphipraxis.net/28875-font-registrieren.html)

HW764 31. Aug 2004 17:02


Font Registrieren
 
Wie kann ich eine Font im System Registrieren?

Gruss HW764

Sprint 31. Aug 2004 18:03

Re: Font Registrieren
 
Mit der WinAPI AddFontResource. Nähere Informationen findest du in der Code-Library, MSDN und im PSDK.

HW764 31. Aug 2004 18:41

Re: Font Registrieren
 
Ich dachte, ich hätte da mal einen Code gesehen...

MathiasSimmack 31. Aug 2004 18:53

Re: Font Registrieren
 
Na ja, jetzt, wo du den Suchbegriff kennst, wär´s doch kein Problem, damit mal die Suchseite zu [dp="AddFontResource"]füttern[/dp]. Oder?

ghost007 3. Jan 2008 23:59

Re: Font Registrieren
 
Hallo,

kurze frage zu dieser funktion: AddFontResource wenn man durch dieses procedure fonts registriert, sind diese dann auch in die registry eingetragen? und können von allen programmen genutzt werden ?

MfG - Ghost007

Muetze1 4. Jan 2008 00:07

Re: Font Registrieren
 
Einfach mal in die MSDN geschaut?

MSDN: AddFontResource()
The AddFontResource function adds the font resource from the specified file to the system font table. The font can subsequently be used for text output by any application.


MSDN: AddFontResource()
Remarks

Any application that adds or removes fonts from the system font table should notify other windows of the change by sending a WM_FONTCHANGE message to all top-level windows in the operating system. The application should send this message by calling the SendMessage function and setting the hwnd parameter to HWND_BROADCAST.

When an application no longer needs a font resource that it loaded by calling the AddFontResource function, it must remove that resource by calling the RemoveFontResource function.

This function installs the font only for the current session. When the system restarts, the font will not be present. To have the font installed even after restarting the system, the font must be listed in the registry.

Windows 95/98/Me: AddFontResourceW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems.

ghost007 4. Jan 2008 00:13

Re: Font Registrieren
 
hm,
ok dann nächste frage, wir installier ich die font dauerhaft?

MfG - Ghost007

Muetze1 4. Jan 2008 00:44

Re: Font Registrieren
 
Und wieder ein Ergebnis der MSDN dazu: How to Add a scalable Windows font permanent. Die Seite ist übersetzt - kannst auch das englishe Original abrufen. Grundlegend sind es nur API Aufrufe die du direkt so in Delphi aufrufen kannst. Somit nichts unlösbares, selbst wenn man kein Visual Basic kann...


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