![]() |
I'm assuming it's the font's fault, but just in case ...
In my html I have ½ and in the Preview window it shows 1/4 instead of 1/2. It does this with Google's Literata Book Medium; with Microsoft's Sitka it shows 1/2.
|
Wow, could you check with Chrome browser and see if it has the same issue? QtWebEngine is chrome based.
|
Yes, same thing; 1/4 with Literata, 1/2 with another font. Does that mean they mixed up the glyph for #189?
|
Yes that means it is the font that is messed up - either wrong glyph of wrong font table.
|
You can check with a FontExplorer, using Windows the charactermap should be enough to fugure this out.
|
Quote:
Fonts > Font Coverage > All Characters in this text: ½ Quote:
Side Note: And may I ask why you're using the Vulgar Fraction characters? |
Quote:
|
Quote:
|
Quote:
Quote:
Vulgar Fractions have quite a few disadvantages (some are listed in this article): http://www.personal.psu.edu/ejp10/bl...unicode-1.html But the biggest disadvantage in my experience is: What if you need one that isn't included? Here's a list of Vulgar Fractions in Unicode: http://www.fileformat.info/info/unic...preview=entity Unicode has the "most common" basic fractions like 1/2, 1/4, 3/4... but Font support is also very shaky once you get beyond the most basic. On my computer, ~230 fonts include ¼, but only 82 have ⅞. Remember, people are going to be reading this on ereaders with all different types of fonts. Also, when you need a 1/12 or 1/100 or 4/3... all of a sudden vulgar fractions will look one way, while normal fractions look another way. * * * If you still want the "vulgar look", it's better to implement this via OpenType frac and CSS: https://helpx.adobe.com/fonts/using/...ntax.html#frac but even this, support is going to be lacking in many Fonts/Readers/Tools. Side Note: And whatever you do, don't try to hack together fractions as superscripts/subscripts: Code:
<sup>1</sup>/<sub>2</sub> |
Quote:
|
I have to admit I've been quite annoyed at time by Kobo and fractions in Epub formatted material. Many times I've seen a square symbol in the ingredients list when the font in use does not have the required symbol.
At least in kepub they will fall back to displaying the missing symbol using a different font. Sent from my moto g(7) power using Tapatalk |
| All times are GMT -4. The time now is 06:54 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.