[cairo] How to get truetype contour points with cairo

mhao1999 at live.cn mhao1999 at live.cn
Wed Jun 2 15:45:12 UTC 2021


For rendering text with cairo, my understanding is that:

  1.  use pango to get each position of glyph
  2.  use cairo to render such glyph

For 2, I think the cairo use some libraries (x rendering or xft library) to parse font file (installed in the system) and get vector information of each glyph and convert such vector information to screen pixel (rasterization and anti-alias, etc).

My question is:

  1.  does cairo use freetype library (called by x rendering or xft) to parse the truetype font file?
  2.  can I get vector information of each glyph (like contour points and bezier control points)?

Thanks
James Hao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20210602/ed85a057/attachment.htm>


More information about the cairo mailing list