AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

Get font name stored in stream

Ein Thema von WojTec · begonnen am 14. Sep 2014 · letzter Beitrag vom 14. Sep 2014
 
WojTec

Registriert seit: 17. Mai 2007
482 Beiträge
 
Delphi XE6 Professional
 
#3

Re: AW: Get font name stored in stream

  Alt 14. Sep 2014, 14:00
Are you sure with Delphi 5 as you flagged this thread or Delphi XE6 as your profile state?
Website marked themself, I forgot change to higher version

How do you read the name from the file?

Mostly the file is opend as a stream and then the information is read from the stream
If it will be native Delphi code, then probably will no problem read stream, but I'm using GDI32.DLL@GetFontResourceInfoW:

function GetFontResourceInfoW(lpszFilename: PWideChar; var cbBuffer: DWORD; lpBuffer: PWideChar; dwQueryType: DWORD): DWORD; stdcall;

This is working for both TTF and FON. But they want to see file path, not data pointer.

Yap, I have routines to load not installed fonts at runtime, but now I want to get name from font stream (stored in some TStream descent). Or in this way can get loaded font name

Geändert von WojTec (14. Sep 2014 um 14:21 Uhr)
  Mit Zitat antworten Zitat
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

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 19:01 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