AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Font Registrieren

Ein Thema von HW764 · begonnen am 31. Aug 2004 · letzter Beitrag vom 4. Jan 2008
Antwort Antwort
HW764
(Gast)

n/a Beiträge
 
#1

Font Registrieren

  Alt 31. Aug 2004, 17:02
Wie kann ich eine Font im System Registrieren?

Gruss HW764
  Mit Zitat antworten Zitat
Benutzerbild von Sprint
Sprint

Registriert seit: 18. Aug 2004
Ort: Edewecht
712 Beiträge
 
Delphi 5 Professional
 
#2

Re: Font Registrieren

  Alt 31. Aug 2004, 18:03
Mit der WinAPI AddFontResource. Nähere Informationen findest du in der Code-Library, MSDN und im PSDK.
  Mit Zitat antworten Zitat
HW764
(Gast)

n/a Beiträge
 
#3

Re: Font Registrieren

  Alt 31. Aug 2004, 18:41
Ich dachte, ich hätte da mal einen Code gesehen...
  Mit Zitat antworten Zitat
MathiasSimmack
(Gast)

n/a Beiträge
 
#4

Re: Font Registrieren

  Alt 31. Aug 2004, 18:53
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?
  Mit Zitat antworten Zitat
Benutzerbild von ghost007
ghost007

Registriert seit: 31. Okt 2005
Ort: München
1.024 Beiträge
 
Delphi 7 Personal
 
#5

Re: Font Registrieren

  Alt 3. Jan 2008, 23:59
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
Christian
Es gibt möglich Dinge und unmöglich Dinge.
Für unmögliche braucht man lediglich etwas länger.
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#6

Re: Font Registrieren

  Alt 4. Jan 2008, 00:07
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.
  Mit Zitat antworten Zitat
Benutzerbild von ghost007
ghost007

Registriert seit: 31. Okt 2005
Ort: München
1.024 Beiträge
 
Delphi 7 Personal
 
#7

Re: Font Registrieren

  Alt 4. Jan 2008, 00:13
hm,
ok dann nächste frage, wir installier ich die font dauerhaft?

MfG - Ghost007
Christian
Es gibt möglich Dinge und unmöglich Dinge.
Für unmögliche braucht man lediglich etwas länger.
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#8

Re: Font Registrieren

  Alt 4. Jan 2008, 00:44
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...
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:36 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