freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] vertical positioning of glyphs from BDF fonts


From: Werner LEMBERG
Subject: Re: [ft] vertical positioning of glyphs from BDF fonts
Date: Fri, 08 Jan 2010 18:18:55 +0100 (CET)

> currently I am trying to extend our text engine that uses FreeType
> for glyph rendering. Up to now we've only used TrueType fonts but we
> also want to be able to use bitmap fonts. Specifically, it is
> necessary to achieve output that looks the same (or reasonably
> close) with both kinds of fonts, in the same application.  [...]
> 
> Then I've played around with the generated BDF font, and the glyphs
> themselves look fine (same as when using the TTF file directly). But
> positioning the glyphs correctly to match the TTF glyphs' y
> positions seems to be impossible because the ascender, descender and
> y_scale of the loaded face are zero.  [...]

Could you please write a small demo program (with no graphical output,
some printf's are completely sufficient) which demonstrates your
setup, and which exhibits the problems you have?  This would help me a
lot in answering your question (since obviously either the
documentation is buggy or FreeType's implementation itself).


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]