![]() |
#1 |
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
|
Font embedding, swash alternatives---no codepoints!
Hey, guys:
I thought the Workshop was feeling bereft and lonely, having not had a new post since before HRH Elizabeth passed, so...what the heck. I ran into a somewhat interesting issue, the last few days and I hope you're not reading this, thinking that I have some magic wand solution, because I don't. Given what (I think) it would cost to fix this, the client passed on fixing it and went with the standard glyphs, but: A client sent us an INDD package file, which used the Adobe-available CANTO font. This is a hugely experienced customer--if I say we've done nearly 500-750 eBooks for them, I'm likely not exaggerating. The file used 5 faces--Bold, Light, Roman, SemiBold, Semiboldital (Semi-bold Italic). Right? But, lo, the book designer used swash alternatives. We use these all the time, sans issue, but this time, what to my wondering eyes should appear when we endeavored to export the HTML/ePUB/anything? (See attached.) Ixnay on the Ode-points-cay. No codepoints. No Hex (the glyph #454? Nope, not Hex.) So, instead of the fancy T (and myriad other letters), we ended up with the base font. I told the customer what I thought it would cost, for me to use "my font guy" and create codepoints for +/- 52-ish characters, in all 5 faces, and they decided that they could go Swashless. There were over 100 chapters in the book and 5-6 Parts sections, all of which used the contextual swashes, so making them as images wasn't a) affordable for the customer or b) a quick-n-easy solution for us, either. But I was wondering if anybody here had a fast-n-easy(ier) way to do this? I mean, to assign codepoints and then deploy them? I figured if ANYBODY knew, it would be one of you geniuses....??? Hitch |
![]() |
![]() |
![]() |
#2 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
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
|
Hob, mon sweetie:
500-750 books for ONE author? Sheesh, you must know some proflific dudes and dudettes! (ᵒ̤̑ ₀̑ ᵒ̤̑)wow!*✰ it's a print design house, much like my own, that would rather not mess with eBooks, so we white-label their stuff and have for...gosh, IDK, 10 years now, give or take. :-) Hitch Last edited by Hitch; 09-24-2022 at 05:52 PM. Reason: ETA to fix my fancy smiley. :-) |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The simplest solution I can think of is to use a similar but different font that's not broken.
|
![]() |
![]() |
![]() |
#5 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,016
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
Mixing with a similar enough un-swashed serif font and matching size & weight may be "fun". |
|
![]() |
![]() |
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
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#7 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,347
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I'm going to pretend to display font ignorance here...for the betterment of everyone else who is wondering and not wanting to display their own level of understanding (of course)
![]() ![]() What are codepoints and why are they important?? |
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Quote:
https://en.wikipedia.org/wiki/Code_point |
|
![]() |
![]() |
![]() |
#9 | |
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:
(I mean, without making it an image, which obviously, <> ideal.) Hitch |
|
![]() |
![]() |
![]() |
#10 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
... ...
Last edited by hobnail; 09-26-2022 at 12:42 AM. |
![]() |
![]() |
![]() |
#11 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
How are code points used in html, with the numeric html entity?
|
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#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
|
As far as I know--and I don't lay claim to being some world-class font expert, by any means--you simply use the same information that you do for any other character, that isn't a typical glyph (a, b, c...) in an HTML environment. Some are used sort of cross-fonts, like using the HTML entities for ellipses, let's say. ike a required space, ellipses, etc, but some--let's say the Abramo Serif Double-Dagger--you'd embed that using the Hex 0x2021 (which is the "codepoint" for that character in that font).
‡ (The font itself doesn't work here, but that's what the character would look like in whatever font this is, here in MR.) Or the "per mille" sign: ‰ But, alas, alack, if a font does not have that--no Hex, no nuthin', there can't be a way to use it, outside of the fairly narrow universe of Adobe and other PRINT layout programs--right? FYI, the "codepoints" for both of those, above, the double dagger and the per-mille, are the same across most fonts. Aren't we talking the "private use" codepoints in Unicode, or am I starting to lose my marbles here? H |
![]() |
![]() |
![]() |
#14 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I presume the swash alternatives are specified in an OpenType feature. Can't you just enable the feature in CSS and have them displayed as intended (as long as the renderer supports OpenType features)? It may be possible to programmatically replace all the conventional letters with their swash alteratives, if that's what you want...
|
![]() |
![]() |
![]() |
#15 | |
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:
Code:
font-variant-alternates: styleset(alt-a); And the fallback would simply be the non-alternative? Is that right? I know this seems like I'm overthinking it, but I'm reasonably sure that I've never had to deal with swashes, etc. in the PUA that have no coding at all. Nuthin', nada--hell the OT stuff doesn't even show up in my font manager, which is not some el-cheapo freebie, either. In fact, to see these suckers, (outside of, say, INDD), I have to open them in a font editing/modification/creation program. Okay, more digging on my part. There's gotta be a more-obvious answer that I'm simply overlooking. Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Embedding font breaks font-family? | Calan | Amazon Kindle | 1 | 06-13-2020 11:48 AM |
Embedding font in books that already have embedded font | Barty | Calibre | 2 | 10-16-2013 11:38 PM |
Font Embedding? | teh603 | Writer2ePub | 75 | 01-08-2013 07:57 PM |
Font embedding | sachin | Sigil | 3 | 03-21-2012 09:19 AM |
Do I need a font license if all I'm doing is referring to the font (not embedding)? | Stodder | Workshop | 21 | 04-21-2011 04:19 AM |