nanogui: freetype2 in portrait mode doesnt work


Previous by date: 23 Jun 2006 02:22:45 +0100 Re: Compiling Files, Greg Haerr
Next by date: 23 Jun 2006 02:22:45 +0100 Re: freetype2 in portrait mode doesnt work, Sunil Gupta
Previous in thread: 23 Jun 2006 02:22:45 +0100 Re: freetype2 in portrait mode doesnt work, Uwe Klatt
Next in thread: 23 Jun 2006 02:22:45 +0100 Re: freetype2 in portrait mode doesnt work, Sunil Gupta

Subject: Re: [nanogui] freetype2 in portrait mode doesnt work
From: Sunil Gupta ####@####.####
Date: 23 Jun 2006 02:22:45 +0100
Message-Id: <449B4254.3080200@learningsoft.net>

I'm experiencing the same issue (no visible output when using FreeType 2).
My device is not in portrait mode and is able to display the built-in
fonts. Image BLTs also work OK. I guess I need to debug into
GdDrawAreaInternal to see what's going on. Here is some debugging output
to verify that FreeType is functioning correctly:

    GdCreateFont: name=Vera, height=12
    Checking for FreeType2 font
    Initializing FreeType2 driver
    Creating FreeType2 font: name=Vera, height=12, attr=0
    Have FreeType2 cache
    Nano-X-Freetype2: Adding new font: /usr/share/fonts/TTF/Vera.ttf
    Glyph 'A':
    00: - - - * * - - - -
    01: - - - * * - - - -
    02: - - * * - * - - -
    03: - - * - - * - - -
    04: - - * - - * - - -
    05: - * * - - - * - -
    06: - * * * * * * - -
    07: - * - - - - * * -
    08: * * - - - - - * -
    Successfully created FreeType2 font
    Nano-X-Freetype2: freetype2_drawtext(x=20, y=20) called
 
    GdCreateFont: name=VeraSe, height=10
    Checking for FreeType2 font
    Initializing FreeType2 driver
    Creating FreeType2 font: name=VeraSe, height=10, attr=0
    Have FreeType2 cache
    Nano-X-Freetype2: Adding new font: /usr/share/fonts/TTF/VeraSe.ttf
    Glyph 'A':
    00: - - - * - - -
    01: - - * * - - -
    02: - - * - * - -
    03: - * - - * - -
    04: - * * * * - -
    05: - * - - - * -
    06: * * - - * * *
    Successfully created FreeType2 font
    Nano-X-Freetype2: freetype2_drawtext(x=20, y=20) called

-- sg

Greg Haerr wrote:
> : I enabled portrait mode in mwin/winmain.c with
> : GdSetPortraitMode(psd,MWPORTRAIT_RIGHT);
> :
> : Normal grapic output is ok, but no ttf output is visible.
> :
> : Without portrait mode everything is working.
> : I am using framebuffer with MWPF_TRUECOLOR565 and freetype-2.1.3 on
> : mipsel-linux.
>
> That's pretty strange, but the TTF font engine uses GdBlit to
> display font glyphs, and it sounds like that's where the problem
> lies. I would think it would just display incorrect orientation,
> rather than no display. Are you getting any screen output where
> the text should be? What color?
>
> Check the GdBlit call in engine/font_freetype.c for more details.
>
> Regards,
>
> Greg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>


Previous by date: 23 Jun 2006 02:22:45 +0100 Re: Compiling Files, Greg Haerr
Next by date: 23 Jun 2006 02:22:45 +0100 Re: freetype2 in portrait mode doesnt work, Sunil Gupta
Previous in thread: 23 Jun 2006 02:22:45 +0100 Re: freetype2 in portrait mode doesnt work, Uwe Klatt
Next in thread: 23 Jun 2006 02:22:45 +0100 Re: freetype2 in portrait mode doesnt work, Sunil Gupta


Powered by ezmlm-browse 0.20.