Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2019, 08:32 AM   #1
PenguinCEO
Connoisseur
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 53
Karma: 47166
Join Date: Sep 2018
Device: a lot
An asymmetry in loading fonts

If I load fonts in the editor with File -> New file it returns the following message:

... The text for the CSS @font-face rule for this file has been copied to the clipboard. ...

In fact I can past the rules into a CSS file, but I can load one font file at a time.

But If I load fonts with File -> Import files into book, I can load as many files I want all together, but then I have to write all CSS @font-face rules manually.

It would be useful if every time a font is loaded in a book, whatever the way it is done, would be loaded into the clipboard the related CSS rules.
PenguinCEO is offline   Reply With Quote
Old 11-28-2019, 12:53 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: 36,277
Karma: 16098999
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...a02663d398957a
kovidgoyal is offline   Reply With Quote
Old 11-28-2019, 03:17 AM   #3
PenguinCEO
Connoisseur
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 53
Karma: 47166
Join Date: Sep 2018
Device: a lot
Quote:
Originally Posted by kovidgoyal View Post
Very good. Thanks.
PenguinCEO is offline   Reply With Quote
Old 11-29-2019, 07:19 AM   #4
phossler
Guru
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 871
Karma: 295056
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
FWIW, I have a series of folders with the font files and a font style sheet that I can just load all at once

Just link the style sheet and it'd done

Doesn't have to be the same font-family

Code:
/* ----------------------------------------------*/
/* Style sheet to use Georgia fonts -------------*/
/* ----------------------------------------------*/
html, body {
  font-family: "Georgia";
}
@font-face {
  font-family: "Georgia";
  font-weight: normal;
  font-style: normal;
  src: url(../fonts/Georgia.ttf);
}
@font-face {
  font-family: "Georgia";
  font-weight: bold;
  font-style: normal;
  src: url(../fonts/Georgia_Bold.ttf);
}
@font-face {
  font-family: "Georgia";
  font-weight: normal;
  font-style: italic;
  src: url(../fonts/Georgia_Italic.ttf);
}
@font-face {
  font-family: "Georgia";
  font-weight: bold;
  font-style: italic;
  src: url(../fonts/Georgia_Bold_Italic.ttf);
}
phossler is offline   Reply With Quote
Reply

Tags
editor, font embedding

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch No Side loading fonts? booklover6 Barnes & Noble NOOK 7 08-10-2013 06:33 AM
How to add alternate fonts without replacing system fonts.(this time this is a guide) techiemonkey Kindle Developer's Corner 17 09-12-2012 04:55 PM
need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 hanpal Kindle Developer's Corner 1 02-20-2012 10:40 AM
Touch Fonts question (special characters in stock and custom fonts) levil Kobo Reader 20 09-23-2011 01:51 PM
Loading fonts onto the Iriver Story James_Wilde iRiver Story 19 04-26-2011 08:09 AM


All times are GMT -4. The time now is 09:22 AM.


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