CIDFont, CMap, Unicode, glyph subsetting, PDF, PostScript, font rendering, cidfontf1, cidfontf2, cidfontf3, cidfontf4, cidfontf5, cidfontf6
Run the following command (Ghostscript 10.03+): cidfontf1 f2 f3 f4 f5 f6 updated
gs -sDEVICE=pdfwrite \
-dCompatibilityLevel=1.7 \
-sCIDFSubstPath=/path/to/fonts \
-sCIDFSubstFont="NotoSansCJK-Regular" \
-c "/CIDFontF1 /NotoSansCJK-Regular findfont definefont pop" \
-f input.pdf -o output_fixed.pdf
Updated flag:
-dPDFCIDSetSubstitution=trueis now default. Updated flag: -dPDFCIDSetSubstitution=true is now default
Here is the 2025 updated procedure for fixing and updating CIDFont references. Here is the 2025 updated procedure for fixing
CID fonts are a type of font used in PostScript and PDF files to represent characters. They are especially prevalent in documents that contain a large number of characters, such as those written in Chinese, Japanese, and Korean (CJK). The CID system allows for the mapping of character codes to specific glyphs in a font, facilitating the accurate display of complex scripts.
Software that generates or reads PDFs (like Ghostscript, Apache PDFBox, or Adobe PDF Library) maintains a list of "Base 14" fonts and standard CID fonts.