[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Glyph extents
From: |
Jean Abou Samra |
Subject: |
Re: Glyph extents |
Date: |
Wed, 19 Apr 2023 02:28:15 +0200 |
User-agent: |
Evolution 3.46.4 (3.46.4-1.fc37) |
Le mercredi 19 avril 2023 à 02:00 +0200, Jean Abou Samra a écrit :
> Does anyone have an idea why it happens?
OK, now I see this:
```
PangoRectangle logical_rect;
PangoRectangle ink_rect;
pango_glyph_string_extents (pgs, pa->font, &ink_rect, &logical_rect);
PangoFcFont *fcfont = PANGO_FC_FONT (pa->font);
FTFace_accessor ftface (fcfont);
Box string_extent (
Interval (PANGO_LBEARING (logical_rect), PANGO_RBEARING (logical_rect)),
Interval (-PANGO_DESCENT (ink_rect), PANGO_ASCENT (ink_rect)));
```
Why are we using the `ink_rect` for Y extents but `logical_rect` for X extents?
signature.asc
Description: This is a digitally signed message part
- Glyph extents, Jean Abou Samra, 2023/04/18
- Re: Glyph extents,
Jean Abou Samra <=