Thread: Locking Fonts?
View Single Post
Old 09-15-2021, 03:44 AM   #15
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by FDPuthuff View Post
What I was dealing with, was representing text on an older computer terminal. It has a very distinctive look. San-serif and mono-spaced.

Try font-family: monospace;
That will probably give you a courier-like font. Also try making it bold.

Or, just try <pre> instead of <p> tags, which should give monospaced text.

Or, if there isn't much text, make and place images.
That's what I usually do for a few Chinese characters, as embedding a Chinese font adds like 6MB to a file, even for a few characters, subsetting doesn't seem to work for them.

If your desired font isn't too large, you could specify it and have monospace, or sans-serif, be the fall back if publisher's fonts aren't allowed


.terminal {font-family: MyTerminal-font, monospace; text-align: left; }


Quote:
Originally Posted by FDPuthuff View Post
What I ended up doing was setting the CCS for this text to san-serif. I couldn't find an .otf file for the text I wanted anyway.
Look for "pixel fonts".
e.g. https://www.fontspace.com/category/pixel

You can use ttf or otf in ebooks.

Last edited by AlanHK; 09-15-2021 at 03:48 AM.
AlanHK is offline   Reply With Quote