This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3158|Reply: 2

[Source] OpenPDF uses font 'xxx' with 'Identity-H' is not recognized

[Copy link]
Posted on 5/23/2024 3:56:31 PM | | |
OpenPDF is a Java library for creating and editing PDF files using LGPL and MPL open source licenses. OpenPDF is the LGPL/MPL open-source successor to iText, which is based on some forks of the iText 4 svn tag.

Insert a Chinese string using the system font, the code is as follows:

The error is always as follows:

Font 'xxx' with 'Identity-H' is not recognized
Reason: The ttc file format is TrueTypeCollectionFonts, which contain a variety of fonts, with an increased 0 indicating the use of a font with an index of 0.

The solution is as follows:







Previous:Tertiary Schema and Secondary Image (Mapping) in the Database
Next:Warning: Input elements should have autocomplete attributes
 Landlord| Posted on 5/23/2024 3:57:15 PM |
Font types TrueType and OpenType difference
https://www.itsvse.com/thread-10763-1-1.html
 Landlord| Posted on 1/6/2025 5:22:59 PM |
In PDF documents, Identity-H and Identity-V are two common font encoding methods used to embed non-Latin character sets (such as Chinese, Japanese, Korean, etc.).

Identity-H is designed for horizontal typography, with characters arranged from left to right.
Identity-V is designed for vertical typography, with characters arranged from top to bottom.

The main difference between Identity-H and Identity-V is that they are optimized for horizontal and vertical typography, respectively. The choice of encoding depends on your document layout needs. If you're not sure about the layout direction, Identity-H is usually chosen by default, as most modern documents are typeset horizontally.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com