-
Notifications
You must be signed in to change notification settings - Fork 73
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
Font problems in PDFs with version 1.6.* #72
Comments
This could be the same issue as is being discussed here: #53 (comment) |
@georf Could you please translate the error message you get in Acrobat to English? |
Having some issues with certain font hiding a numeric number when rendered. Specifically the figure "8" is hidden when I used a certain font like "Anonymous Pro" for displaying numeric currency. It does not happen in 1.5.1 though. The figure will disappear visually but when using cursor to select the text and re-paste it elsewhere it will appear. Very strange issues. |
I found the official translation at google:
|
This is essentially what I am getting also. When open in Preview macOS, it appear fine. But when opening in Adobe Acrobat, an error message like that pop out. Does not matter which font. Some works, some don't. |
Could someone please post a short script reproducing the issue? The one Dan posted doesn't result in an error message in Acrobat for me. |
Here is a script which does not work # frozen_string_literal: true
gem 'ttfunk', '= 1.6.1'
require 'ttfunk'
require 'prawn'
Prawn::Document.generate('embedded_font.pdf') do
font_families.update('LiberationSans' => {
normal: '../ressources/LiberationSans-Regular.ttf',
bold: '../ressources/LiberationSans-Bold.ttf',
italic: '../ressources/LiberationSans-Italic.ttf',
bold_italic: '../ressources/LiberationSans-BoldItalic.ttf'
})
font 'LiberationSans'
font_size 8
text 'Hello World!'
end If I force 1.5.1 or 1.6.0, it works. ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32] |
I tried with the string : 1.5.1 : All good |
Forgot to say I test with adobe acrobat reader DC 2019.021.20061 |
Do you can fix it? |
This issue should be fixed in TTFunk 1.6.2. Please upgrade and report any issues you have. Thank you for patience. |
The problem was reintroduced in TTFunk 1.8.0. |
Yesterday I updated my Rails project to ttfunk 1.6.0. My users have problems with embedded fonts in Adobe Acrobat. German Umlauts are not displayed anymore. Adobe shows the German error: "Die eingebettete Schrift "815ef7+DejaVuSans" konnte nicht entnommen werden. Einige Zeichen werden u. U. nicht korrekt angezeigt bzw. gedruckt."
Today I updated to 1.6.1 and now all chars are not displayed with Adobe.
On my Linux System with xreader I have no problems. In Firefox I got the following errors, but there I see the Umlaut chars:
For now I use version 1.5.1 for my project, but I hope you understand the problem. My knowledge of PDF and TTF is not deep enough for this problem.
The text was updated successfully, but these errors were encountered: