Recent

Author Topic: Library containing AddFontResource  (Read 6122 times)

tguns

  • New member
  • *
  • Posts: 9
Library containing AddFontResource
« on: May 26, 2011, 12:28:32 pm »
Hey guys, I searched for how to import custom font. Found that it's possible through

Code: [Select]
AddFontResource(...)
Problem is that I can't find out which library I have to include to make it work. The guide said ShellAPI, but Lazarus still doesn't identify the procedure. Any help here? Thank you.

eny

  • Hero Member
  • *****
  • Posts: 1646
Re: Library containing AddFontResource
« Reply #1 on: May 26, 2011, 02:46:51 pm »
In general you can easily scan the lazarus/FPC source directories for this procedure.
But it's 'windows'.

Note there's also: RemoveFontResource(...);
All posts based on: Win10 (Win64); Lazarus 3_4  (x64) 25-05-2024 (unless specified otherwise...)

tguns

  • New member
  • *
  • Posts: 9
Re: Library containing AddFontResource
« Reply #2 on: May 26, 2011, 03:24:36 pm »
Oh didn't know that, never had to deal with problem like this before.

But thanks to you, my application is now a little bit sexier.

eny

  • Hero Member
  • *****
  • Posts: 1646
Re: Library containing AddFontResource
« Reply #3 on: May 26, 2011, 03:36:46 pm »
But thanks to you, my application is now a little bit sexier.
Hm, I wonder what font you use then ;D
All posts based on: Win10 (Win64); Lazarus 3_4  (x64) 25-05-2024 (unless specified otherwise...)

 

TinyPortal © 2005-2018