Add pdfioFileCreateFontObjFromData function (Issue #120)

This commit is contained in:
Michael R Sweet
2025-04-12 16:25:34 -04:00
parent 76c1cc694f
commit 06f38edcc7
6 changed files with 914 additions and 541 deletions

3
ttf.h
View File

@@ -3,7 +3,7 @@
//
// https://github.com/michaelrsweet/ttf
//
// Copyright © 2018-2024 by Michael R Sweet.
// Copyright © 2018-2025 by Michael R Sweet.
//
// Licensed under Apache License v2.0. See the file "LICENSE" for more
// information.
@@ -81,6 +81,7 @@ typedef struct ttf_rect_s // Bounding rectangle
//
extern ttf_t *ttfCreate(const char *filename, size_t idx, ttf_err_cb_t err_cb, void *err_data);
extern ttf_t *ttfCreateData(const void *data, size_t data_size, size_t idx, ttf_err_cb_t err_cb, void *err_data);
extern void ttfDelete(ttf_t *font);
extern int ttfGetAscent(ttf_t *font);
extern ttf_rect_t *ttfGetBounds(ttf_t *font, ttf_rect_t *bounds);