Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-26-2017, 04:46 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Suppressing font-face declarations

Hi

Within the "Tools" menu, could it be possible to enable the "Filter style information" window to destroy some @paragraphs we find in the stylesheets, mainly @font-face declarations of this kind:

Code:
@font-face {
  font-family: "LinLibertineSC-G30";
  src: url(../Fonts/LinLibertineSC-G30-Regular.ttf);
  font-weight: normal;
  font-style: normal;
  }
Up to now, one who wishes to suppress all font-related information from its stylesheet can tick the "fonts" entry but after that he needs to open the stylesheet to look for these now useless @font-face paragraphs and suppress them one by one.
roger64 is offline   Reply With Quote
Old 09-26-2017, 05:06 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm not sure I understand. If you want to remove a font from a book, use the Font manager and click remove selected font. It will automatically remove the @font-face rule for you. Or use the subbset fonts which will go also automatically remove all unused fonts.
kovidgoyal is online now   Reply With Quote
Advert
Old 09-26-2017, 05:46 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
You're right. Sorry.
roger64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
@font-face is not embedded iliakan Conversion 2 01-12-2015 02:29 AM
Editing stylessheet containing @font-face entry crashes edit book DrChiper Editor 9 07-12-2014 06:40 AM
@media amzn-kf8 and @font-face phossler Calibre 2 12-21-2013 11:25 AM
Kindle Previewer Font Face grayed out? katl Kindle Formats 7 05-01-2013 05:44 PM
Am I using @font-face correctly? phossler Sigil 12 11-30-2012 04:38 PM


All times are GMT -4. The time now is 01:41 AM.


MobileRead.com is a privately owned, operated and funded community.