> > ... calculate an "average" baseline and align to that ...
> Or align to the midpoints of the overall font glyph boxes (including
> font ascent and font descent). That may be a suitable compromise.
Or... whatever works. FreeType provides a client with all kinds of
metrics and bounding boxes,
> I'm aware that when drawing text, all glyphs should be aligned on a
> single baseline. The example I've given does not do this; it aligns
> the text on different font's baseline, causing the inconsistent
> look.
This is what I told you in the very beginning: Your logic to position
the glyphs
Hi,
Sorry for the mess of emails. This is my first time using a mailing list, and
I'm still getting the hang of it.
I'm aware that when drawing text, all glyphs should be aligned on a single
baseline. The example I've given does not do this; it aligns the text on
different font's baseline,
On Thu, 20 Jul 2023 01:03:54 +, takase1121 via FreeType users wrote:
> ... calculate an "average" baseline and align to that ...
Or align to the midpoints of the overall font glyph boxes (including
font ascent and font descent). That may be a suitable compromise.
Hi,
Thank you for pointing it out. I'm unsure about the strategy to align the
baselines. The simplest would be aligning to the lowest / highest baselines,
but that may break some faces. The other method would be the one I mentioned -
calculate an "average" baseline and align to that, but it
[It would be nice if you could use a decent e-mail writer that creates
readable plain-text messages (which we prefer on this mailing list),
without completely garbling quoted material.]
> > This looks like a logic error in your program. If I say `ftdump
> > cjk.otf` I get
> >
> > ```
> >
> My problem arises when different faces have different baselines, and
> some faces (especially CJK) has weird baselines as CJK scripts
> technically don't have a concept of baselines. This causes the text
> using different faces to be offsetted vertically. I've thought of
> choosing the lowest