How to change text color

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?

Thanks.

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.

Yes, it works now. Thanks a lot!

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.
Thanks