Código:
// Add an OpenType font to FBInk. Note that at least one font must be added in order to use fbink_print_ot()
// Returns -(EXIT_FAILURE) on failure, or EXIT_SUCCESS otherwise
// filename: The font file path. This should be a valid *.otf or *.ttf font
// style: Defines the specific style of the specified font (FNT_REGULAR, FNT_ITALIC, FNT_BOLD, FNT_BOLD_ITALIC)
// NOTE: You MUST free the fonts loaded when you are done by calling fbink_free_ot_fonts()
// NOTE: You may replace a font without first calling free
// NOTE: Default fonts are secreted away in /usr/java/lib/fonts on Kindle,
// and in /usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts on Kobo,
// but you can't use the Kobo ones because they're obfuscated...
// Which leads me to a final, critical warning:
// NOTE: Don't try to pass non-font files or encrypted/obfuscated font files, because it *will* horribly segfault!
FBINK_API int fbink_add_ot_font(const char* filename, FONT_STYLE_T style);
// Free all loaded OpenType fonts. You MUST call this when you have finished all OT printing.
FBINK_API int fbink_free_ot_fonts(void);