Knowledge-Graphs-Book / HTML-Book

Other
37 stars 6 forks source link

Accented characters in nodes appear larger #37

Open aidhog opened 1 year ago

aidhog commented 1 year ago

Lower-case accented characters appear larger than they should in gnode spans. See the following example in Table 4.1:

image

There doesn't seem to be a good reason for this considering the source. Maybe a font or browser issue?

aidhog commented 1 year ago

It indeed appears to be an issue with the cmss8 font. Changing it to something like inconsolata seems to solve the issue, but makes the difference between the HTML edges and imported TikZ images to be more obvious.

aidhog commented 1 year ago

Tried adding Latin Modern to replace Computer Modern, which addresses the issue, but visually looks too different. (To enable, replace cmss8 with lmss8 in css/style.css.)

image

Antoine-Zimmermann commented 1 year ago

I tried many variants of lmss but can't find one that really looks good. With cmss8, the accents look weird, but all the rest is better than with lmss. So overall, I tend to prefer cmss8 still.