Font handling More...
#include "fonts.hpp"#include <fontconfig/fcfreetype.h>#include <cairo-ft.h>#include <iostream>#include "error.hpp"#include "symbols.hpp"Functions | |
| std::string | wstring_to_utf8 (const std::wstring &in) |
| Convert wide string to utf8. More... | |
| int | utf8_get_length (unsigned char c) |
| Returns length of utf8 character. More... | |
| std::string | utf8_next_character (std::string::const_iterator it) |
| Returns next utf8 character from string pointed to by iterator. More... | |
Variables | |
| FontLib | fontlib |
| Global instance of class FontLib. More... | |
Detailed Description
Font handling
Function Documentation
◆ utf8_get_length()
| int utf8_get_length | ( | unsigned char | c | ) |
Returns length of utf8 character.
◆ utf8_next_character()
| std::string utf8_next_character | ( | std::string::const_iterator | it | ) |
Returns next utf8 character from string pointed to by iterator.
◆ wstring_to_utf8()
| std::string wstring_to_utf8 | ( | const std::wstring & | in | ) |
Convert wide string to utf8.
Variable Documentation
◆ fontlib
| FontLib fontlib |
Global instance of class FontLib.