[Lazarus] fpReport -> Lazarus reportdsg.lpr
Michael Van Canneyt
michael at freepascal.org
Mon Aug 21 10:54:22 CEST 2017
On Mon, 21 Aug 2017, Graeme Geldenhuys via Lazarus wrote:
> On 2017-08-21 09:18, Michael Van Canneyt via Lazarus wrote:
>> The '../demos/fonts' and other hardcoded values are maybe not really
>> a good idea:)
>
> For the life of me, I couldn't think of another solution. eg: you might
> have a headless reporting CGI app and needs to look for fonts in a
> specific location, not the general "fonts" directories of the system.
>
> But yes, the hard-coded paths like....
>
> gTTFontCache.SearchPath.Add('/usr/share/fonts/truetype/....');
>
> isn't ideal. Especially if you consider the inconsistency between Linux
> distros, and the fact that FreeBSD uses /usr/local/share/fonts/ instead
> of /usr/share/fonts/
>
> But again, unless we extend the IFDEFs for most used OSes, I couldn't
> think of a better solution.
>
> What if we introduce a global (or user-defined)
> ~/.config/fpreport/fpreport.ini file that specifies default font search
> paths for our specific reporting needs - per system? But then again,
> isn't that what the standardised $HOME/.fonts/ is for?
These problems will only occur if you're using non-standard fonts.
If you recall, I wanted to analyse /etc/fonts/fonts.conf on unix.
(not sure if that is used on FreeBSD)
On windows, normally only the windows fonts dir should be needed.
Michael.
More information about the Lazarus
mailing list