fcl-pdf: TTF subsetter fails with Korean fonts
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
TTF subsetter fails with Korean fonts. The exception raised is:
# 0 fpc_raiseexception(0x0, 0x66f8fb0, 0x0) at ..\inc\except.inc:163 # 1 TFONTSUBSETTER__GETRAWGLYPHDATA(0, &LtPos;error reading variable>) at P:\software\FPC\trunk_src\packages\fcl-pdf\src\fpttfsubsetter.pp:373 # 2 TFONTSUBSETTER__ADDCOMPOUNDREFERENCES(&LtPos;error reading variable>) at P:\software\FPC\trunk_src\packages\fcl-pdf\src\fpttfsubsetter.pp:509 # 3 TFONTSUBSETTER__SAVETOSTREAM(0x6713b98, &LtPos;error reading variable>) at P:\software\FPC\trunk_src\packages\fcl-pdf\src\fpttfsubsetter.pp:1045 # 4 TPDFFONT__GENERATESUBSETFONT(&LtPos;error reading variable>) at P:\software\FPC\trunk_src\packages\fcl-pdf\src\fppdf.pp:1615 # 5 TPDFDOCUMENT__CREATEFONTENTRIES(&LtPos;error reading variable>) at P:\software\FPC\trunk_src\packages\fcl-pdf\src\fppdf.pp:5654 # 6 TPDFDOCUMENT__SAVETOSTREAM(0x66f81b8, &LtPos;error reading variable>) at P:\software\FPC\trunk_src\packages\fcl-pdf\src\fppdf.pp:5699 # 7 TPDFTESTAPP__SAVEDOCUMENT(&LtPos;error reading variable>, &LtPos;error reading variable>) at testfppdf.lpr:125 # 8 TPDFTESTAPP__DORUN(&LtPos;error reading variable>) at testfppdf.lpr:866 # 9 CUSTAPP$_$TCUSTOMAPPLICATION_$__$$_RUN at :0
10 main at testfppdf.lpr:905
Steps to reproduce:
See the attached modified testfppdf.lpr. Run it with "-s 1" parameter to allow TTF font subsetting.
Please get the NotoSansCJKkr-Regular.otf font file from https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKkr-hinted.zip (homepage: https://www.google.com/get/noto/).
Mantis conversion info:
- Mantis ID: 36201
- Version: 3.3.1