Discussion:
GetGlyphOutline with OpenType variants?
(too old to reply)
Matt Houser
2010-03-26 23:13:05 UTC
Permalink
I am currently using GetGlyphOutline to get outline curves for fonts
selected into device contexts.

I want to get outlines for the variants of the Gabriola font. My
understanding is that GDI cannot be used to show the variants.

Because of this, how can I get the outlines of letter variants?

...Matt
Mihai N.
2010-03-28 09:39:47 UTC
Permalink
Post by Matt Houser
I am currently using GetGlyphOutline to get outline curves for fonts
selected into device contexts.
I want to get outlines for the variants of the Gabriola font. My
understanding is that GDI cannot be used to show the variants.
Because of this, how can I get the outlines of letter variants?
Sure you can, but you have to use glyph indices, not character
code points.
So use GetGlyphOutline with GGO_GLYPH_INDEX (and GDI's ExtTextOut
can take ETO_GLYPH_INDEX). So GDI can be used, no problems.

The tricky part is mapping from code points to glyph index.
For that, Uniscribe is probably the solution.
But unless you explain a bit what you want, this is just a guess.
--
Mihai Nita [Microsoft MVP, Visual C++]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Loading...