Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF blog post content problems: 2024-08-12-fonts-special-chars/ #830

Open
ronaldtse opened this issue Oct 15, 2024 · 0 comments
Open

PDF blog post content problems: 2024-08-12-fonts-special-chars/ #830

ronaldtse opened this issue Oct 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ronaldtse
Copy link
Contributor

From @petervwyatt

  • you state "The character encoding in PDF is similar to HTML, in that Unicode characters are used to represent glyphs in the document." which is incorrect. I think a better statement is something like "Unlike HTML, PDF is a fully typeset and precisely kerned page description language that specifies precise glyph selection and exact glyph positioning via glyph IDs that directly select glyphs from fonts - this is also why embedding fonts into PDF is critically important! This is also what ensures that PDFs have a consistent and reliable document display, without relying on text-shaping, text layout, or reflow implementations in each viewer. In PDF each glyph may be mapped to one or more Unicode codepoints for text extraction (if Unicode exists for each glyph). Multiple Unicode codepoints for a single glyph occur with complex typesetting such as ligatures (e.g. "ffi") and diacritics."
@ronaldtse ronaldtse added the bug Something isn't working label Oct 15, 2024
@ronaldtse ronaldtse self-assigned this Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant