[cairo] How to get truetype contour points with cairo
mhao1999 at live.cn
Thu Jun 3 15:14:20 UTC 2021
Much better. Thanks!
looks great, seemingly use freetype library to draw text, will learn further.
From: cecashon at aol.com <cecashon at aol.com>
Sent: Thursday, June 3, 2021 2:19 AM
To: mhao1999 at live.cn <mhao1999 at live.cn>; cairo at cairographics.org <cairo at cairographics.org>
Subject: Re: [cairo] How to get truetype contour points with cairo
Give the following a try and see if it is close to what you are after.
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
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)?
cairo mailing list
cairo at cairographics.org<mailto:cairo at cairographics.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo