![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jun 2009
Location: Ireland
Device: PRS-505
|
Embeding font into LRF
My understanding is, that if you need to display some nonstandard (read non english)characters in your ebook you need to embed font containing those characters into LRF file.
So I selected appropriate font in look&feel dialog, resulting lrf is larger by 1 MB or so as compared with nonembeded version but PRS-505 is still not displaying those character correctly. There are spaces insted od those characters. If I convert the same text into PDF with embeded font (the same I embeded into lrf) everything looks fine. Is there something I am missing in converting text into lrf? BTW source text is plain txt document, no formatting. Thank you for your help. |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
You also need to specify the font in the book itself.
In the overide CSS box put something like this: Code:
body {font-family: fontname, generic family;} |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jun 2009
Location: Ireland
Device: PRS-505
|
Thanks for fast response.
I have added into override CSS this Code:
body {font-family: "Times New Roman", Serif;} ![]() |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,973
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You would be best to convert to ePub as font embedding works quite well and is a lot easier and faster then LRF. See the linked thread for more info on how to do this properly.
https://www.mobileread.com/forums/showthread.php?t=36361 |
![]() |
![]() |
![]() |
#5 |
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
|
I think Kovid has posted a few times that embedding fonts in LRFs is rather hit-or-miss.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,973
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Also, it's slower in LRF to have embedded fonts. ePub is faster to embedded fonts. In fact, you don't get a slowdown in ePub where you can and sometimes do in LRF. |
|
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
I was never able to make font embedding in epub work on my prs-505. It is just ignored.
|
![]() |
![]() |
![]() |
#8 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Jun 2009
Location: Ireland
Device: PRS-505
|
Quote:
![]() To be precise, I maanged to get different font on the screen, but encoding is still wrong. Has enybody ever got positive results on Sony PRS-505? Last edited by nas_matko; 06-15-2009 at 10:31 AM. |
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
The main problem is, in my opinion, that Adobe DE shipped with PRS-505 simply does not support handling of embedded fonts. What does work and I use it a lot in quite a few recipes is pointing to a fonts located in some folder on reader's internal memory. That of course means you are hard-coding your epub's to use fonts as they are on your reader, but at least it works, and it works well.
|
![]() |
![]() |
![]() |
#10 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
BTW, as I recall the topic that JS Wolf linked to, it is about installing fonts onto the reader, not about embedding them into the ebook file. To actually have them appear in a book you would have to change the CSS (I think) to make use of the newly installed fonts.
Several years ago you could not embed fonts created by a commercial font foundry which had copyright / DRM for a specific font face. I am not sure if this is still occurring. I mention this just in case you want to try using a font which you know does not have any usage restrictions. |
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,973
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@font-face {
..font-family: "Fontin"; ..font-weight: normal; ..font-style: normal; ..src: url(fonts/Fontin-Regular.ttf) } @font-face { ..font-family: "Fontin"; ..font-weight: bold; ..font-style: normal; ..src: url(fonts/Fontin-Bold.ttf) } @font-face { ..font-family: "Fontin"; ..font-weight: normal; ..font-style: italic; ..src: url(fonts/Fontin-Italic.ttf) } That is the CSS code to specify the fonts. Now to embed the fonts, create a directory called fonts in the same directory that has the CSS file. Now to use the font, put in... body { ..font-family: "Fontin", serif } and anyplace else it needs to go depending on the CSS. |
![]() |
![]() |
![]() |
#14 |
Connoisseur
![]() Posts: 55
Karma: 12
Join Date: Jun 2009
Device: Sony PRS 505
|
I have been converting a lot of Asian (Japanese and Chinese) into LRF recently without problem.
I assume you want to read those in Sony Reader and have run Font mapper to add in the right font. When you convert the book make sure you set encoding to utf-8. ePub on the other hand does not works well. I mainly use carblire with the css overwrite. Most of the time the layout in the final LRF book are all mess up |
![]() |
![]() |
![]() |
#15 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,973
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font Difference Between ePUB and LRF? | EatingPie | Sony Reader | 7 | 05-14-2010 05:32 PM |
feed to lrf, how do I change font (or have default font) | lovemov | Calibre | 3 | 03-16-2009 10:57 PM |
Set default font for LRF? | daruking | Calibre | 15 | 03-03-2009 06:26 PM |
Changing lrf font size | Oletros | Sony Reader | 11 | 03-19-2008 07:10 PM |
LRF with embedded font | igorsk | Sony Reader | 8 | 10-26-2006 08:08 AM |