| 426 | }; |
| 427 | |
| 428 | static unsigned long SysFont_Read(FT_Stream s, unsigned long offset, unsigned char* buffer, unsigned long count) { |
| 429 | struct SysFont* font; |
| 430 | cc_result res; |
| 431 | if (!count && offset > s->size) return 1; |
| 432 | |
| 433 | font = (struct SysFont*)s->descriptor.pointer; |
| 434 | if (s->pos != offset) font->src.Seek(&font->src, offset); |
| 435 | |
| 436 | res = Stream_Read(&font->src, buffer, count); |
| 437 | return res ? 0 : count; |
| 438 | } |
| 439 | |
| 440 | static void SysFont_Done(struct SysFont* font) { |
| 441 | int i; |
nothing calls this directly
no test coverage detected