Announcement

Collapse
No announcement yet.

Using ttf files directly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using ttf files directly

    Hi there again :-)

    Would it be possible to add the option of using ttf files directly so you could use your own custom fonts without the need to install the font on the target system first?

  • #2
    I suppose this question is for Windows platform. In Windows GDI, there are functions such as AddFontResourceEx and AddFontMemResourceEx that you can use to load the font from an external file (e.g. "MyFontArial.ttf"), or directly from memory (e.g. if you embedded the font file with the application). Once one of these calls succeeds, you can just use the font name as usual in Afterwarp functions, e.g. "MyFontArial".

    Comment


    • #3
      Ahh.. so it kinda temporarly adds that font to the system fonts lists without installing it. Clever. Thanks.

      Comment

      Working...
      X