mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-06 05:55:06 +00:00
[hb-subset] Report "Invalid font file."
Fixes https://github.com/harfbuzz/harfbuzz/issues/4824#issuecomment-2272156543
This commit is contained in:
parent
84f165646e
commit
d5596dfb0b
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,8 @@ struct subset_main_t : option_parser_t, face_options_t, output_options_t<false>
|
|||
write_file (output_file, result);
|
||||
hb_blob_destroy (result);
|
||||
}
|
||||
else if (hb_face_get_glyph_count (orig_face) == 0)
|
||||
fail (false, "Invalid font file.");
|
||||
|
||||
hb_face_destroy (new_face);
|
||||
if (preprocess)
|
||||
|
|
Loading…
Add table
Reference in a new issue