If you are not one of the world's experts in fonts, typography, and writing systems, the answer is simple: NOT . TrueType / OpenType has many tables that you need for proper rendering, and even when using FreeType (which is an extremely low-level library), most people make mistakes.
If you need to perform the processing of fonts at the level of lower levels determined between platforms, then at least you should use FreeType and libotf. This will provide you access to the glyphs and outlines, which you can then make as you like. In most cases, although using your GUI system, text rendering procedures will be much simpler and less error prone.
Finally, if you insist on ignoring my advice, a good RTFS in FreeType and Microsoft online resources explaining tables in TrueType / OpenType fonts is probably the best place to start.
source share