|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
"Creation" of fonts ex nihilo (or how Calibre displays Bold having only Regular)
I see that Calibre displays (in preview but also in the standalone, that module that launches when one clicks upon the epub format in the library) the book as if all variants of the font exist (it makes it bold or italic, although only the regular version exists).
Both ADE on computer as the ones used in Sony T series (I have them all three), do not create fake bold/italics. I do not have other ereaders, if one disregards the very basic Trekstor Pyrus Mini. The fonts are TTF. I understand that OTF may have some hints/pointers/info helping the viewer display also other shapes (this is how variable width works). Is calibre doing a service, or there is some "unlocking" magic commands? Thanks |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
If the font variant (or combination) does not exist, some renderers generate a "fake" font.
As an example, see these articles showing: Real vs. Fake Smallcaps https://techstacker.com/fake-small-c...al-small-caps/ https://tex.stackexchange.com/questi...xetex-fontspec (Real smallcap fonts have slightly thicker letters, so they blend in with regular text. ALL CAPS shrunk down becomes too thin, so they look much lighter than surrounding text.) Real vs. Fake Italics https://graphicdesign.stackexchange....ustrator/42413 (In many fonts, real italics are usually more "cursive". The fake ones are just slanted.) Real vs. Fake Bold https://css-tricks.com/watch-your-font-weight/ * * * Side Note: These are also called "faux" or or "artificial" or "synthetic" fonts. For more information, also read the fantastic "CSS Fonts Module Level 4". They give lots of examples + show comparisons + explain in detail. For example: Quote:
Long story short: Some programs look for an exact matching/existing font, and if it doesn't exist, will fallback to Regular (or closest thing). (Like ADE not supporting or displaying font-variant: small-caps.) Other programs like Word/LibreOffice will generate artificial combinations if the font doesn't exist. (Like small-caps -> shrunken ALL CAPS... or if you choose some odd combination like: bold+italic+smallcaps font, it may take the bold+italic font which does exist, convert to ALL CAPS, then shrink.) Last edited by Tex2002ans; 11-23-2021 at 08:29 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Thank you, it was extremely well-written and exhaustive.
I did some research before but it was hard to filter out the noise ![]() ![]() |
![]() |
![]() |
![]() |
#4 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
We ended up (I ENDED UP, that is) spending two hours, finding a nearly-identical sans-serif font that, lo, had an italic face (n.b.: you'd be shocked to know how many don't have one) that we could substitute. I really wish there was some magic button I could push so that I'd have some way of knowing that an italic or bold face was being fake-created by a typographer/designer. GRUMBLE. Hitch |
|
![]() |
![]() |
![]() |
#5 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,651
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Some fonts even have a slant face and a true italic, because the italic is not simply a slanty font.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
#7 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,651
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
( * Such as 5 x 7 or 8 x 8, invariably fixed size and monospace) Last edited by Quoth; 11-26-2021 at 12:41 PM. |
|
![]() |
![]() |
![]() |
#8 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,518
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#9 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,581
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Computer Modern had slanted as well as italic. It was a great font family in the sense that Knuth designed a base font with Metafont and then by using parameters was able to tweak them and make all of the different variations. So they all worked together very well. Sort of similar to Adobe's Multiple Masters except that the Metafont fonts were bitmap fonts. There's something newer these days but I forget its name.
|
![]() |
![]() |
![]() |
#10 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,651
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#11 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#12 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,581
Karma: 14328510
Join Date: Nov 2019
Device: none
|
|
![]() |
![]() |
![]() |
#13 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
#14 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
(There's also odd/rare combinations, like Upright Italics... mostly used in Maths.) * * * And then in CSS, along with your typical font-style: italic, there's even:
but support for this is... crappy. See: Quote:
morphing a single font into all the different variants. So instead of having 12+ versions (Bold, Italic, BoldItalic, Light/Medium/Heavy, Condensed/Extended, [...]), you'll only have a single font that can be stretched/changed. If you wanted to play with some of the sliders in different fonts, see: For an easier overview article, see: For in-depth technical details, see:
But, in many real-life cases, I think it's going to create lots of disasters. Like those rotten sites that use CSS letter-spacing, but never take into account people who block/override + aren't using their specific fonts. The text clashes together (or becomes too far apart) and becomes completely unreadable. (Similar to when you export Fixed Format EPUBs out of InDesign—or don't have InDesign's stupid "cloud fonts"—but it still carries over the disgusting CSS, causing chaos in the fallback fonts.) - - - - - Side Note: There are huge advantages though with Variable Fonts. Filesize being a huge one. Most of the fontfaces have nearly-duplicate information, with only minor differences between, so 90%+ of that can be compressed away: Instead of Regular+Bold+Italic+BoldItalic taking up 2MB + 2MB + 2MB + 2MB = 8MB, it might be a 2.5MB variable font (which includes "all 4" + thousands of in-between variants). Side Note #2: Most of this "variable tweaking" is also already done by font designers when designing fonts. There are so many characters in Unicode now, it's impossible for a single person (or group of people) to design a all the typefaces by hand... so a designer will:
A lot of this discussion was covered in the absolutely fantastic talk from last year's TUG 2020 conference: which explains how the Noto family of fonts was created over 15+ years. Noto is an enormous open-source fontface designed to support most of Unicode:
Quote:
There's "Latin Modern" font, which was created in 2002 (last updated 2021): https://ctan.org/texarchive/fonts/lm http://www.gust.org.pl/projects/e-foundry/latin-modern and "New Computer Modern", which was created in 2019 (last updated 2021): https://www.ctan.org/texarchive/fonts/newcomputermodern - - - - - Side Note: There are a few more "Computer Modern"-based fonts over the decades, like "CM-Super", etc., but many of these haven't been updated to support lots of the newer Unicode characters + OpenType features. There are also many other high-quality fonts out there... many are listed in: Side Note #2: And as discussed way above, there are so many more characters (in Unicode) now compared to back then. To support all possible combinations is a monumental task. With many fonts, they also tend to be very English- and/or Western-European-centric, so they break (or don't support) writing with things like:
Billions of people also read/write with other, more complicated scripts, like Arabic + Asian languages. - - - - - Complete Side Note: Because of this thread, a few days ago I was catching up on Harfbuzz's creator—Behdad Esfahbod. (Harfbuzz is the fantastic "text shaper" created over the past 20 years, and is now the basis for many programs/OSes [Chrome/Firefox/Photoshop/LibreOffice + Android/Linux]. I referenced it a handful of times in posts over the years.) He gave talks covering lots of this font stuff:
Sadly, it seems like Esfahbod's leaving the font business. (Due to how corrupt Microsoft + Adobe have been, and how a few people there have been jamming up and holding back fonts+OpenType for many years.) He summarized a lot of his 20 years of font research here, leaving the groundwork for future formats + enhancements: And he covered a lot of the font history (+ corruption) in his video here: Interesting things I learned was the introduction of "Color Fonts". There were 4 different implementations all merged into OpenType at about the same time:
and no OS supports all 4. Each OS only supports 1 or 2 of these. This color incompatibility was a big disaster, so now some higher ups in OpenType are very hesitant to add further functionality, shooting down lots of potential enhancements/solutions. (The color solution Esfahbod has been trying to get added is "Color Gradients", which would've compromisingly tackled most use-cases... and again unify OpenType across all OSes just like he did with HarfBuzz.) Last edited by Tex2002ans; 11-28-2021 at 08:00 PM. |
||||
![]() |
![]() |
![]() |
#15 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,651
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
And eReader makers might ignore things anyway. Compare Amazon Kindle 2007 Language support & font support with 1997 Windows, Mac and Linux or even 1987 DOS support (you could do R to L or Hebrew, Cyrillic and Arabic in 1987 on DOS. But Classic Wordstar didn't even do 8 bit ASCII for accents, only 7 bit! Like a Daisywheel.).
Personally I hate the way many websites do fonts. Sheer arrogance and also an issue they don't bother hosting the fonts (possible with Google fonts) but load in real time from Google. Last edited by Quoth; 11-28-2021 at 09:43 AM. |
![]() |
![]() |
![]() |
Tags |
bold-controlling, epub 2, font, ttf |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Setting fonts for certain book "news" calibre ePub and calibre questions | wakkaday | Kobo Reader | 1 | 05-22-2016 08:03 PM |
iPad "Upgraded" to iBooks 3.2 – Bold fonts are extra-bold, italics are now bold-italic | MHC | Apple Devices | 4 | 03-03-2014 01:50 PM |
Conversion aborts when using Calibre "Subset Fonts" | GrannyGrump | Calibre | 10 | 01-11-2013 03:42 PM |
"Stretching crystals promises flexible colour displays" | jharker | News | 13 | 09-05-2007 12:03 PM |
Cable TV Displays "Illegal Operation" Error Message | Bob Russell | Lounge | 0 | 04-19-2005 10:06 AM |