RE: [lazarus] Font names shown in the respective font

2006-12-14 Thread George Birbilis
Fonts seem to be a tricky thing to handle. I haven't looked yet, but anybody know how Qt handles this on multiple platforms? What I need to do is 1) get list of available font names (this seems to already be done by the TFont property editor used at the Object Inspector) Yes. This can be

Re: [lazarus] Font names shown in the respective font

2006-12-14 Thread Mattias Gaertner
On Thu, 14 Dec 2006 10:28:01 +0200 George Birbilis [EMAIL PROTECTED] wrote: Fonts seem to be a tricky thing to handle. I haven't looked yet, but anybody know how Qt handles this on multiple platforms? What I need to do is 1) get list of available font names (this seems to already be

RE: [lazarus] Font names shown in the respective font

2006-12-14 Thread George Birbilis
1) get list of available font names (this seems to already be done by the TFont property editor used at the Object Inspector) Yes. This can be quite slow. I'll try to do it once at creation, instead of at each update (I hope the Object Inspector doesn't recreate the property

Re: [lazarus] Font names shown in the respective font

2006-12-14 Thread Micha Nelissen
Graeme Geldenhuys wrote: TGfxFontClass = (fcSerif, fcSansSerif, fcTypewriter, fcDingbats); I think a higher abstraction will be better. Something like a list of names that map to (font name, size, style, charset) per widgetset. We currently have one: default. But it would be nice if the user

Re: [lazarus] Font names shown in the respective font

2006-12-14 Thread Mattias Gaertner
On Thu, 14 Dec 2006 12:57:27 +0200 George Birbilis [EMAIL PROTECTED] wrote: 1) get list of available font names (this seems to already be done by the TFont property editor used at the Object Inspector) Yes. This can be quite slow. I'll try to do it once at creation, instead

Re: [lazarus] Font names shown in the respective font

2006-12-14 Thread Mattias Gaertner
On Thu, 14 Dec 2006 21:45:18 +0100 Micha Nelissen [EMAIL PROTECTED] wrote: Graeme Geldenhuys wrote: TGfxFontClass = (fcSerif, fcSansSerif, fcTypewriter, fcDingbats); I think a higher abstraction will be better. Something like a list of names that map to (font name, size, style, charset)

Re: [lazarus] Font names shown in the respective font

2006-12-14 Thread Micha Nelissen
Mattias Gaertner wrote: About 'header': Most often the font name will be the same, but the size or the style will be different. Maybe better: AControl.Font.Assign(GetDefaultHeaderFont) Yes, ok, but my point was that the user could make up his own needs for his/her application and use those.

Re: [lazarus] Font names shown in the respective font

2006-12-14 Thread Graeme Geldenhuys
I suppose you could have something like this TNamedFontItem = class private public constructor Create(AFontID, AFontDesc : string); property FontID : string property FontDesc : string end; The above class is used for the mappings. You need to store a list of

RE: [lazarus] Font names shown in the respective font

2006-12-13 Thread George Birbilis
The LCL provides a Delphi compatible TFont. The widgetsets searches the nearest font. The gtk interface also understands XLD font names, where the font name is a 15 attribute filter. So, basically you can select every available font under windows and under gtk/X. But they are not cross

Re: [lazarus] Font names shown in the respective font

2006-12-13 Thread Marc Weustink
Mattias Gaertner wrote: On Mon, 11 Dec 2006 21:44:29 +0200 George Birbilis [EMAIL PROTECTED] wrote: Ignoring the font dialog since it's another thing (it has preview which covers the needs of the user a bit), the font name property editor (it shows a drop-down list, could show an owner-drawn

Re: [lazarus] Font names shown in the respective font

2006-12-13 Thread lazarus . mramirez
Quoting Mattias Gaertner [EMAIL PROTECTED]: I'm not an font expert, so I don't know, what properties are needed by TFont to make it cross platform (if this is possible). Mattias Hope it helps: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsicat_id=FontDownloads

Re: [lazarus] Font names shown in the respective font

2006-12-12 Thread Mattias Gaertner
On Mon, 11 Dec 2006 21:44:29 +0200 George Birbilis [EMAIL PROTECTED] wrote: Ignoring the font dialog since it's another thing (it has preview which covers the needs of the user a bit), the font name property editor (it shows a drop-down list, could show an owner-drawn one instead) would

Re: [lazarus] Font names shown in the respective font

2006-12-12 Thread Michael Van Canneyt
On Tue, 12 Dec 2006, Mattias Gaertner wrote: On Mon, 11 Dec 2006 21:44:29 +0200 George Birbilis [EMAIL PROTECTED] wrote: Ignoring the font dialog since it's another thing (it has preview which covers the needs of the user a bit), the font name property editor (it shows a drop-down

Re: [lazarus] Font names shown in the respective font

2006-12-12 Thread Graeme Geldenhuys
On 12/12/06, Mattias Gaertner [EMAIL PROTECTED] wrote: I'm not an font expert, so I don't know, what properties are needed by TFont to make it cross platform (if this is possible). I have to agree, that it is quite difficult to handle fonts on multiple platforms. fpGUI handles this in a very

Re: [lazarus] Font names shown in the respective font

2006-12-10 Thread Graeme Geldenhuys
On 12/8/06, George Birbilis [EMAIL PROTECTED] wrote: [I agree with others, your Reply-To address is getting annoying!] Let's see if this fixes the problem (do you reply to [EMAIL PROTECTED] with this e-mail ok or to other one)? It works perfectly now. :-) -- Graeme Geldenhuys There's no

RE: [lazarus] Font names shown in the respective font

2006-12-08 Thread George Birbilis
[I agree with others, your Reply-To address is getting annoying!] Let's see if this fixes the problem (do you reply to [EMAIL PROTECTED] with this e-mail ok or to other one)? Same could be done at the Font selection dialog (the dialog could have such property and the IDE could set that

Re: [lazarus] Font names shown in the respective font

2006-12-08 Thread Felipe Monteiro de Carvalho
On 12/8/06, George Birbilis [EMAIL PROTECTED] wrote: BTW, speaking of many platforms, how does Lazarus support fonts crossplatform? (does it delegate the burden onto the OS ? [since there is raster/bitmap fonts, TrueType, OpenType, PostScript etc. fonts that one could support) Each widgetset

[lazarus] Font names shown in the respective font

2006-12-07 Thread George Birbilis
It would be nice if the font/name property editor (dropdown list) would show the font names written in the respective font. That could be an optional IDE setting (probably disabled or enabled by default depending on how heavy or light it would be in resources at runtime). Same could be done at

Re: [lazarus] Font names shown in the respective font

2006-12-07 Thread Graeme Geldenhuys
[I agree with others, your Reply-To address is getting annoying!] On 12/7/06, George Birbilis [EMAIL PROTECTED] wrote: Same could be done at the Font selection dialog (the dialog could have such property and the IDE could set that from the value of the above mentioned IDE setting) if it's not a