summaryrefslogtreecommitdiff
path: root/src/cache/ftcmanag.c
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2023-05-03 01:31:37 +0000
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2023-05-03 01:31:37 +0000
commitbe15811c4602a1c2584684eb7ed5242e2bf16a5e (patch)
tree0cfafeedd801e4c66af9ba8a71a54538441c80b4 /src/cache/ftcmanag.c
parent77bbfc5960f47412f8d433948bcb3317e9c93b7c (diff)
downloadfreetype2-be15811c4602a1c2584684eb7ed5242e2bf16a5e.tar.gz
[t1cid] Improve cid_get_cid_from_glyph_index().
Update cid_get_cid_from_glyph_index() to return an error and CID=0 in the case that the specified glyph index points to an invalid entry. cidgload.h (cid_compute_fd_and_offsets): Declare new helper function to set the fd_select and 2 offsets to access the glyph description data. cidgload.c (cid_compute_fd_and_offsets): Move the part loading fd_select and 2 offsets from cid_load_glyph() to here. If the loaded parameters are broken, return the Invalid_Offset error. This function does not load the glyph data, only fills these parameters. (cid_load_glyph): Use new helper function in above. cidriver.c (cid_get_cid_from_glyph_index): Check whether the requested glyph index points to a valid entry, by calling cid_compute_fd_and_offsets(). If it is valid, fill the cid by the glyph index (=CID). If it is invalid, return an error and fill the cid by 0.
Diffstat (limited to 'src/cache/ftcmanag.c')
0 files changed, 0 insertions, 0 deletions