![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Subsetting fonts problem when using pseudo-classes
I was hoping to use existing code from calibre.ebooks.oeb.polish.subset, specifically subset_all_fonts, to build some extra functionality into one of my personal plugins.
The problem I'm seeing is that text which will be displayed by a CSS rule such as: Code:
.tx1::first-line {font-family: MySmallcapsFont;} I do understand that calibre has no idea which/how many characters will appear on the first-line but I wonder if it's possible to have some sort of compromise, i.e. keep all characters used by class="tx1", i.e. the main part of the selector. Just a personal opinion but I'd rather keep too many than too few. If this is a non-starter then I'll just have to live with it, but if it's something you'd consider fixing/improving I'm happy to open a bug report with a sample epub. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,216
Karma: 23446406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sure, sounds reasonable. Go ahead and open the bug report.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Many thanks for fixing this.
![]() |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,216
Karma: 23446406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You are welcome
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pseudo classes to be deleted as unused classes | Leonatus | Sigil | 2 | 09-23-2018 09:12 AM |
Darkening and subsetting fonts | roger64 | Workshop | 54 | 05-03-2018 02:29 AM |
Pseudo classes with classes | Macsurfcat | ePub | 4 | 01-07-2016 04:00 AM |
Problem with font subsetting | grumbles | Editor | 17 | 06-20-2014 02:35 PM |
Font subsetting problem | yktan | Calibre | 5 | 09-19-2013 11:00 PM |