Re: further notes on using Pango

From: Andrew Dunbar (hippietrail@yahoo.com)
Date: Thu Apr 25 2002 - 23:41:39 EDT

  • Next message: Andrew Dunbar: "Re: Pango?"

     --- Leonard Rosenthol <leonardr@lazerware.com> wrote:
    > At 7:13 PM +0100 4/25/02, Tomas Frydrych wrote:
    > > > >(5) Develop a new XP font manager (some, but
    > not much platform
    > >> >code needed), no complexities here, all we need
    > to is to be able to
    > >> >retrieve font names and associate them with
    > their Pango descriptions
    > >> >(not unlike the Unix font manager), probably
    > from a pregenerated text
    > >> >file.
    > >> Why doesn't FT fit the bill here - or is there
    > something that
    > >> I am not understanding about what you mean by a
    > "Font
    > >> Manager"?
    > >
    > >We need some internal mechanism for filling the
    > font combo box
    > >with user readable names, and associating the font
    > names in the
    > >combo box with a the descriptive data with the
    > PangoFont objects;
    > >this should be straight forward.
    >
    > Got it! And that also requires integrating
    > with some
    > platform-centric code to get currently installed
    > fonts. But you're
    > right, doesn't sound bad at all.

    We also need to use "native font names" when
    available.
    CJK fonts often have CJK names as well as Roman names.
    Note that we want to show the Japanese names of
    Japanese fonts only when the locale is Japanese *and*
    the font has a Japanese name. I thought this bug
    already existed but I had to create it:
    http://bugzilla.abisource.com/show_bug.cgi?id=3220
    Hopefully we can fix this at the same time:
    http://bugzilla.abisource.com/show_bug.cgi?id=1658

    > >It seems we would not need to directly interact
    > with FreeType, the
    > >Pango low-level api makes it possible to take a
    > string and get back
    > >a finished FT_Bitmap, which is better than I first
    > thought, all we
    > >would need is for each platform to implement a
    > function for drawing
    > >this bitmap on screen, everything else can be XP.
    >
    > Perfect!
    >
    >
    > >PS output would
    > >be a bit more complicated, but at the same time,
    > this would be an
    > >excellent oportunity to move it into the XP land.
    >
    > Yes, since it would all sit on top of FT. And
    > there are
    > already a couple of FT-based PS and PDF generators
    > in development (or
    > even completed) that I've heard of that we should be
    > able to lift
    > code from.

    It just keeps getting better!

    Andrew Dunbar.

    > Leonard
    > --
    >
    ---------------------------------------------------------------------------
    > Leonard Rosenthol
    > <mailto:leonardr@lazerware.com>
    >
    <http://www.lazerware.com>

    =====
    http://linguaphile.sourceforge.net http://www.abisource.com

    __________________________________________________
    Do You Yahoo!?
    Everything you'll ever need on one web page
    from News and Sport to Email and Music Charts
    http://uk.my.yahoo.com



    This archive was generated by hypermail 2.1.4 : Thu Apr 25 2002 - 23:43:15 EDT