[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    [cairo] rounding glyph positions
From:       Matthias Clasen <matthias.clasen () gmail ! com>
Date:       2019-08-01 21:00:45
Message-ID: CAFwd_vDuwukg043WYQX1P9EhHX5_NpFJd2pYkPpcNmY4U3icng () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I've stumbled over cairo_round_glyph_positions_t.

With subpixel positioning, it does not make a lot of sense to round glyph
extents to pixel boundaries. But cairo has a font option called
cairo_round_glyph)_positions_t, which
unfortunately gets hardcoded by the target surface with no api to override
it.

Behdad and myself have been wondering why this is separate from
cairo_hint_metrics_t
in the first place - as far as we can see, the two are more or less
synonymous. But one is
settable, and the other isn't :(

Thankfully, it may not matter much for pango, since we use harfbuzz for
glyph extents.

But I'd still like to understand what the rationale is for a) this being
separate from hint metrics
and b) this not being settable.

[Attachment #5 (text/html)]

<div dir="ltr"><div>I&#39;ve stumbled over \
cairo_round_glyph_positions_t.</div><div><br></div><div>With subpixel positioning, it \
does not make a lot of sense to round glyph extents to pixel boundaries. But cairo \
has a font option called cairo_round_glyph)_positions_t, \
which</div><div>unfortunately gets hardcoded by the target surface with no api to \
override it.</div><div><br></div><div>Behdad and myself have been wondering why this \
is separate from cairo_hint_metrics_t</div><div>in the first place - as far as we can \
see, the two are more or less synonymous. But one is <br></div><div>settable, and the \
other isn&#39;t :(</div><div><br></div><div>Thankfully, it may not matter much for \
pango, since we use harfbuzz for glyph extents.</div><div><br></div><div>But I&#39;d \
still like to understand what the rationale is for a) this being separate from hint \
metrics</div><div>and b) this not being settable.<br></div><div><br></div></div>


[Attachment #6 (text/plain)]

-- 
cairo mailing list
cairo@cairographics.org
https://lists.cairographics.org/mailman/listinfo/cairo

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic