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

BIPM and Manuel: Odd display of math font in Acrobat Reader #30

Closed
ronaldtse opened this issue Oct 18, 2020 · 5 comments
Closed

BIPM and Manuel: Odd display of math font in Acrobat Reader #30

ronaldtse opened this issue Oct 18, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@ronaldtse
Copy link
Contributor

A general comment is that the font chosen for the main text is not pleasant to read on a screen. It appears to be too bold and is not sharp.

The fonts are identical to the fonts in the source PDF.

@opoudjis I partially agree with your statement. But I think I understand the why BIPM made that comment. Maybe the problem comes form the PDF viewer software. I'm using Acrobat Reader and this is how it looks in some parts:

issueFont2
(left: original , right: generated)

In the red square areas, notice how "Kcd" and "540x10^12 Hz" look more bold compared to original version.
Here's another sample:

issueFont3
(left: original , right: generated)

Apparently, this only happens in math expressions. However, if I zoom into the bold text, it looks almost the same:

issuefont4
(left: original , right: generated)

Originally posted by @manuel489 in https://github.com/metanorma/bipm-si-brochure/issue_comments/708076317

@ronaldtse ronaldtse added the bug Something isn't working label Oct 18, 2020
@Intelligent2013
Copy link
Contributor

I've made some experiments with fonts. Results:

  1. some glyphs in font STIX2Math look a bit thicker than Times New Roman (compare char S below).
  2. jEuclid converts MathML into SVG paths (not text), therefore resulted SVG image in PDF looks thicker.
    Here is discussed why jEuclid converts text to path: https://sourceforge.net/p/jeuclid/mailman/message/21997700/
> We have run into some more basis problems with the printed output -- the
> formulas seem blurred. I suspect this is because the text in the SVG is
> converted to paths, rather than being represented as text. Are there any
> tricks to acheiving better print output? (I'll email you a sample
> document separately.)
Yes, this is due to the conversion of fonts -> line graphics. On my
printer the formulas look a little bit thicker, but not blurry, and
actually look better than the rest of the text :)

The main reason for this conversion is that Fonts are handled very
differently by different systems - MathML has many dependencies on
special fonts and characters, and JEuclid has a smart
character-replacement strategy. For this to work, however, it must be
ensured that the font information known to JEuclid is EXACTLY the same
that is available to the final renderer - and this is where a lot of the
existing systems break. Even different versions of the same font may
have different characters available on different systems or when loaded
through different methods (such as ps-fonts vs. ttf fonts). Especially
with the two-step conversion (-> svg, -> pdf), we have two intermediate
renderers which again have their own font processing and metrics
definition. The only way out of this inconsistency was to let Jeuclid
also render the fonts.


  1. Math equations in source PDF looks identical as main text, because most chars typed by 'Times New Roman' font (as main text) and rendered in PDF as text (not paths).

Here is resulted PDF with a few math text representation:
si-brochure-en.presentation.pdf

100%:
изображение

125%:
изображение

150%:
изображение

300%:
изображение

@anermina
Copy link
Contributor

anermina commented Dec 8, 2020

Just to confirm that I get the same result as Manuel displayed in Adobe Acrobat Reader DC, version 2020.013.20066 (Windows OS).

Issue about different appearance of stem:[cc(K)] is probably caused by the same behavior as for the rest of the differences.
image

@opoudjis
Copy link
Contributor

@ronaldtse @Intelligent2013 Is this ticket actionable? It sounds like it isn't.

@ronaldtse
Copy link
Contributor Author

BIPM's publication department is now reviewing the document, let's see if they notice this.

@ronaldtse
Copy link
Contributor Author

We have not received complaints due to this. Closing.

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
None yet
Development

No branches or pull requests

4 participants