[Lazarus] fpReport -> Lazarus reportdsg.lpr
Michael Van Canneyt
michael at freepascal.org
Mon Aug 21 11:18:06 CEST 2017
On Mon, 21 Aug 2017, Graeme Geldenhuys via Lazarus wrote:
> On 2017-08-21 09:54, Michael Van Canneyt via Lazarus wrote:
>> These problems will only occur if you're using non-standard fonts.
>
> What if you wanted "self contained reports" eg like the demos in
> fpReport where we use fonts that are not available on all systems. eg:
> Windows doesn't come standard with DejaVu. Other Linux distros and
> FreeBSD doesn't come standard with the Ubuntu font.
Then you need to add Location+'fonts/' or so, and distribute the font.
If the font isn't there, you can't use it, clearly :)
An idea would be to have aliases for substitution.
>> If you recall, I wanted to analyse /etc/fonts/fonts.conf on unix.
>> (not sure if that is used on FreeBSD)
>
> Yes, FreeBSD uses that too, but again, it is located in the
> user-installed apps location... /usr/local/etc/fonts/
>
> Looking at that file here (again, not sure how Linux distro compare or
> differ), but there are <dir>.... </dir> tags in the beginning of the
> fonts.conf file. Simply adding those to fpTTF's search path should
> already go a long way. That should be pretty easy to add.
>
> <!-- Font directory list -->
>
> <dir>/usr/local/share/fonts</dir>
> <dir>/usr/local/lib/X11/fonts</dir>
> <dir prefix="xdg">fonts</dir>
> <!-- the following element will be removed in the future -->
> <dir>~/.fonts</dir>
Should indeed be easy to parse and handle...
Michael.
More information about the Lazarus
mailing list