| 155 | |
| 156 | #ifdef MSDFGEN_EXTENSIONS |
| 157 | static bool parseUnicode(unicode_t &unicode, const char *arg) { |
| 158 | unsigned uuc; |
| 159 | if (parseUnsignedDecOrHex(uuc, arg)) { |
| 160 | unicode = uuc; |
| 161 | return true; |
| 162 | } |
| 163 | if (arg[0] == '\'' && arg[1] && arg[2] == '\'' && !arg[3]) { |
| 164 | unicode = (unicode_t) (unsigned char) arg[1]; |
| 165 | return true; |
| 166 | } |
| 167 | return false; |
| 168 | } |
| 169 | |
| 170 | #ifndef MSDFGEN_DISABLE_VARIABLE_FONTS |
| 171 | static FontHandle *loadVarFont(FreetypeHandle *library, const char *filename) { |
no test coverage detected