[cairo] How to get truetype contour points with cairo

cecashon at aol.com cecashon at aol.com
Wed Jun 2 18:19:03 UTC 2021


 Hi James,
Give the following a try and see if it is close to what you are after.
cairo3d_text_UI.c athttps://gitlab.com/cecashon/OrderedSetVelociRaptor/-/blob/master/Misc/cairo3d/cairo3d_text_UI.c
Eric
 
 
-----Original Message-----
From: mhao1999 at live.cn <mhao1999 at live.cn>
To: cairo at cairographics.org <cairo at cairographics.org>
Sent: Wed, Jun 2, 2021 8:45 am
Subject: [cairo] How to get truetype contour points with cairo

 #yiv9516126581 P {margin-top:0;margin-bottom:0;}For rendering text with cairo, my understanding is that:   
   - use pango to get each position of glyph
   - 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:    
   - does cairo use freetype library (called by x rendering or xft) to parse the truetype font file?
   - can I get vector information of each glyph (like contour points and bezier control points)?
ThanksJames Hao-- 
cairo mailing list
cairo at cairographics.org
https://lists.cairographics.org/mailman/listinfo/cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20210602/d972686c/attachment.htm>


More information about the cairo mailing list