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 07-20-2021, 06:56 PM   #1
dan2the6th
Connoisseur
dan2the6th began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Mar 2014
Device: iPhone XR
Getting a font into the editor

OK, I'm not too good at this. I'm editing an e-book of "The Hobbit", and I'm wanting to fix up a couple spots that use the "moon runes". Right now the book just uses JPEG files for the runes, and it's ugly.

So I downloaded a TrueType font from someplace that has the runes as characters. I installed the font on my Windows PC and I can use it in Microsoft Word, for example.

But when I use the Calibre Editor, how can I access that font to type rune characters into the text? I'm lost here.

Any help?
dan2the6th is offline   Reply With Quote
Old 07-20-2021, 07:05 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,023
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
On the File Menu: New file: Import Resource file (a button at bottom):<navigate to the font file you downloaded>
IIRC it will make an @font entry in the style sheet. otherwise that will be your task as well as making a: span.rune style and using that span where needed
theducks is offline   Reply With Quote
Advert
Old 07-20-2021, 09:44 PM   #3
phossler
Wizard
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: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
In addition to theducks' comment, I Googled and downloaded a runic font and made a simple epub with the font embedded and a CSS that creates a class

The @font-face and the .runes are needed

Code:
@charset "utf-8";
/* Styles for Test */
@font-face {
  font-family: "Angerthas Moria";
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  src: url(../fonts/AngerthasMoria-lgLAD.ttf);
}

.runes {
    font-family: Angerthas Moria;
    font-weight: bold;
    font-size: 1.5em;
    
  }

HTH
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	184
Size:	82.2 KB
ID:	188262  
phossler is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font size rendering in Calibre Viewer vs. Editor maraskan_user Viewer 2 12-23-2020 03:02 PM
wrong font weight in Book editor on macos Mojave bop001x Editor 3 10-18-2018 02:21 AM
Can't set preferred font in Sigil Code Editor window GrannyGrump Sigil 2 01-26-2014 11:43 PM
eBook Editor - font size GregTheGrate Editor 1 12-16-2013 01:13 AM
Changing the python editor font microgiraffe Calibre 1 07-22-2011 07:30 PM


All times are GMT -4. The time now is 01:28 PM.


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