<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hello,<br><br>I'm evaluating pango and harfbuzz to use with javafx and I have a couple questions:<br><br></div><div>1) Advance typographic features (i.e <a href="http://dev.w3.org/csswg/css-fonts/#font-rend-props">http://dev.w3.org/csswg/css-fonts/#font-rend-props</a>)<br>
</div><div>In pango I was only able to find support for small caps (in PangoVariant)<br></div><div>In harfbuzz, hb_shape() takes an array of hb_features_t. I suppose any feature available in the font can be selected using harfbuzz ?<br>
<br></div><div>Is that right, or am I missing something ?<br></div><div><br></div><div>2) glyph advances<br></div><div>Is there any difference between glyph advances produced harfbuzz and pango ?<br></div><div>I would like, if possible, to use linear (non-hinted) advances.<br>
</div><div><br></div><br></div>Note that I started with pango since it provides a complete solution including<br></div>-itemizer (not mandatory for me)<br></div>-shaper<br></div>-font fallback (I think)<br></div>-glyph metrics (xMax, yMax, xMin, yMin)<br>
</div>-glyph images<br></div>-glyph outlines <br><br></div>Turns out that for most of what I'm doing I also need either cairo or freetype to work with pango.<br></div>I'm not 100% on this one, but using cairo does not provide anything extra (as it seems cairo uses freetype).<br>
</div>So instead of using pango+cairo or (pango+freetype) I could directly use freetype (for glyph images/outlines/metrics) and harfbuzz (for shaping complex text).<br></div><br></div>Please advise.<br><br></div>Thank you<br>
Felipe<br><br></div>