View Full Version : How to change text color
11-03-2009, 07:58 PM
I can draw texts by vgDrawGlyph() or vgDrawGlyph() function.
But the text is in black color. Is there anyway I can change the color of the text?
11-04-2009, 12:08 PM
Same way as you would with a path.
Create a paint object with vgCreatePaint(), use vgSetPaint() to make it current for either fill or stroke (or both), and modify the paint object's state with either the vgSetColor() or the vgSetParameter*() functions.
11-09-2009, 01:04 AM
Yes, it works now. Thanks a lot!
11-09-2009, 01:17 AM
Is there a formal tool to convert glyphs in font files to openvg source codes?
I have tried font2openvg. It works but only for ASCII characters currently. Also, it is not quite stable either.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.