[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Freetype] where to place the origin before rendering
From: |
Turner, David |
Subject: |
RE: [Freetype] where to place the origin before rendering |
Date: |
Wed, 13 Oct 2004 10:36:21 +0200 |
Hello,
> I'm trying to render a font of pixel height 64 into an
> area of height 68 pixels.
>
What do you mean by a "font of pixel height 64" exactly ?
Do you realize that "64 pixels" are a nominal size that may
have nothing to do with the "real" pixel height of characters
on screen ?
> How can I determine the vertical pixel origin before rendering?
>
> I add bitmap_top to the pen before rendering each character so
> they get displaced outside of the area I'm trying to render in.
>
"bitmap_top" is positive for upwards y-coordinates. If your
target surface uses the opposite convention, like most graphics
library, you'll need to _substract_ it to the vertical pen
position to get correct placement.
Hope this helps,
- David Turner
- The FreeType Project (www.freetype.org)
>
> --
> address@hidden
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/freetype
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: [Freetype] where to place the origin before rendering,
Turner, David <=