Are you using Xft font support (the default) or standard X11 font support?

Graeme.


On 4/15/07, Giuliano Colla <[EMAIL PROTECTED]> wrote:
While testing fpgui, I had a problem with default font, because Arial-10
wasn't found.
So I looked into the source. I fixed my problem changing the default to
Sans-10, but I spotted what it seems a bug to me.
In the following section of code form GFX_X11 lines 1281 on:

  if not Assigned(FDefaultFont) then
  begin
    {$IFNDEF XftSupport}
    FDefaultFont.FontData := XLoadQueryFont(Handle, 'fixed');
    {$ENDIF}
......

if FDefaultFont is *not assigned*, attempting to write
FDefaultFont.FontData doesn't appear right.

I'm not familiar enough with X11fonts witchcraft to attempt to fix it.

Giuliano

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



--
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to