AGB  ·  Datenschutz  ·  Impressum  







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

AddFontResource

Ein Thema von Andidreas · begonnen am 19. Aug 2011 · letzter Beitrag vom 22. Aug 2011
 
Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.355 Beiträge
 
Delphi 12 Athens
 
#5

AW: AddFontResource

  Alt 22. Aug 2011, 09:22
Zitat von AddFontResource > Return Value:
If the function succeeds, the return value specifies the number of fonts added.

If the function fails, the return value is zero. No extended error information is available.
Blöd ist, daß man hier GetLastError vergessen kann,
aber es wäre dennoch nicht schlecht, wenn man das Result wenigstens mal auswerten würde.

Zitat:
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.

To mark a font as private or not enumerable, use the AddFontResourceEx function.

...

This function installs the font only for the current session
Und der Font ist für alle Programme "registriert", welche im selben Benutzerkontext laufen ... bis zum Shoutdown/Reboot, oder bis RemoveFontResource(Ex).
Ein Therapeut entspricht 1024 Gigapeut.

Geändert von himitsu (22. Aug 2011 um 09:27 Uhr)
  Mit Zitat antworten Zitat
 


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 09:54 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz