Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Sven Barth via Lazarus
Am 21.08.2017 13:56 schrieb "Michael Van Canneyt" : > > > > On Mon, 21 Aug 2017, Sven Barth via Lazarus wrote: > >> Am 21.08.2017 11:25 schrieb "Graeme Geldenhuys via Lazarus" < >> lazarus@lists.lazarus-ide.org>: >>> >>> >>> On 2017-08-21 10:18, Michael Van Canneyt wrote: > > > > >

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread wkitty42--- via Lazarus
On 08/21/2017 05:49 AM, Graeme Geldenhuys via Lazarus wrote: On 2017-08-21 10:35, Andreas Frieß via Lazarus wrote: It is possible to use a standard font and give a warning instead of fire an exception. Eg. Font not found, using standardfont instead ? I don't like that. First, how ar

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Andreas Frieß via Lazarus wrote: Is is not better to call the standard fonts of the system in TFPReportDesignerForm.FormCreate(Sender: TObject); ? if gTTFontCache.SearchPath.Count=0 then begin gTTFontCache.SearchPath.Add(ExtractFilePath(ParamStr(0))+'../demos/fonts

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Andreas Frieß via Lazarus
Is is not better to call the standard fonts of the system in TFPReportDesignerForm.FormCreate(Sender: TObject); ? if gTTFontCache.SearchPath.Count=0 then begin gTTFontCache.SearchPath.Add(ExtractFilePath(ParamStr(0))+'../demos/fonts/'); gTTFontCache.SearchPath.Add(GetUserDir + '.fonts/

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Sven Barth via Lazarus wrote: Am 21.08.2017 11:25 schrieb "Graeme Geldenhuys via Lazarus" < lazarus@lists.lazarus-ide.org>: On 2017-08-21 10:18, Michael Van Canneyt wrote: /usr/local/share/fonts /usr/local/lib/X11/fonts fonts

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Sven Barth via Lazarus
Am 21.08.2017 11:25 schrieb "Graeme Geldenhuys via Lazarus" < lazarus@lists.lazarus-ide.org>: > > On 2017-08-21 10:18, Michael Van Canneyt wrote: >>> >>> >>> >>> /usr/local/share/fonts >>> /usr/local/lib/X11/fonts >>> fonts >>> >>> ~/.fonts >> >> Should ind

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Andreas Frieß via Lazarus
At first this should for the visual part (Designer eg.) And should for windows this not added ? Because in windows the fonts should reside in %windir%\Fonts (see MS documentation) function GetWinDirFonts: string; var dir: array [0..MAX_PATH] of Char; begin GetWindowsDirectory(dir

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 10:47, Michael Van Canneyt via Lazarus wrote: The problem is of course that you normally do not want this in a reporting engine, where the looks are important. Exactly! Some reports could be very dependent on a specific font and font metrics for the layout (internal to fpReport a

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 10:35, Andreas Frieß via Lazarus wrote: It is possible to use a standard font and give a warning instead of fire an exception. Eg. Font not found, using standardfont instead ? I don't like that. First, how are you going to display the warning? Remember fpReport was des

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Andreas Frieß via Lazarus wrote: It is possible to use a standard font and give a warning instead of fire an exception. Eg. Font not found, using standardfont instead ? That is what I meant with introducing aliases. The problem is of course that you normally

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Andreas Frieß via Lazarus
It is possible to use a standard font and give a warning instead of fire an exception. Eg. Font not found, using standardfont instead ? Andreas Am 21.08.2017 um 11:25 schrieb Graeme Geldenhuys via Lazarus: On 2017-08-21 10:18, Michael Van Canneyt wrote: /usr/local/share/font

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 10:18, Michael Van Canneyt wrote: /usr/local/share/fonts /usr/local/lib/X11/fonts fonts ~/.fonts Should indeed be easy to parse and handle... I'll make it so. I guess the best option would be to add it as an option API call, so if someb

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
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

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
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

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
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 r

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
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 lo

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Andreas Frieß via Lazarus wrote: I think there ara som issues with the fonts. frmreportdesignermain.pp around line 395 if gTTFontCache.SearchPath.Count=0 then begin {$IFDEF UNIX} gTTFontCache.SearchPath.Add(ExtractFilePath(ParamStr(0))+'../demos/fonts/'); gTTFo

[Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Andreas Frieß via Lazarus
I think there ara som issues with the fonts. frmreportdesignermain.pp around line 395 if gTTFontCache.SearchPath.Count=0 then begin {$IFDEF UNIX} gTTFontCache.SearchPath.Add(ExtractFilePath(ParamStr(0))+'../demos/fonts/'); gTTFontCache.SearchPath.Add(GetUserDir + '.fonts/'); gTT