Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use external fonts?

Is it possible to use a font directly from resources in Delphi and how?

I have a problem with the very first steps.Example I cannot include Segoe UI Light font in resources of a project,an exception occurs.And that is only if the file's extension is 'ttf'.

If the written above is not possible then how do I use an external font without deploying the font separately(from executable)?

Thanks in advance!

like image 643
Ivan Prodanov Avatar asked Feb 21 '10 08:02

Ivan Prodanov


People also ask

How do I use an external font in CSS?

To use external fonts in CSS, download desired fonts from any font repository and add them into the CSS file using the @font-face rule which specifies a certain name to the custom font and point to the font file by giving the url to the src attribute.


1 Answers

On Windows 2000 and later, you can use AddFontMemResourceEx to install fonts for your process from memory.

like image 158
Ondrej Kelle Avatar answered Sep 28 '22 03:09

Ondrej Kelle