WOFF2 TTC - face_index causes failure
Migrated from: [SAVANNAH-59544]
Avery Crits-Christoph reported:
Hello!
There seems to be an error with WOFF2 TTCs when specifying a face_index. The error is reproducible with ftbench.cc:
- Edit ftbench.cc get_face() function such that face_index is not 0. The font I am using for testing (NotoSansCJK-Regular.woff2) has four faces, so face_index = 1, 2, or 3 would trigger this error. I set face_index = 3, which is "Noto Sans CJK TC" face.
https://git.savannah.gnu.org/cgit/freetype/freetype2-11.
- Configure/make freetype with --with-brotli=yes
- Make ftdemos
- Run ./ftbench -b g NotoSansCJK-Regular.ttc
- Observe successful completion for Noto Sans CJK TC.
- Run ./ftbench -b g NotoSansCJK-Regular.woff2
- "couldn't load font resource" error.
(You can download the TTC from: https://www.google.com/get/noto/help/cjk/
and then run "woff2_compress NotoSansCJK-Regular.ttc" to convert to WOFF2)
Thanks and please let me know if I can provide more information!