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 03-17-2017, 06:45 AM   #1
larysa
Zealot
larysa began at the beginning.
 
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
Error on preview calibre book

I've add one font to my ePub (regular and italic), add embedded font on css style, but into preview of calibre i see all ePub with text italic, not regular!
If change (on css) the name of my font (with one space or namefont-regular) i see text with regular style on preview but not with my font embedded! With font to default on calibre...
This problem is only into calibre preview...with my iPad i see correct font...and this problem is only to one font (Neuton, is a free font downloable from google/fonts)
Why???
larysa is offline   Reply With Quote
Old 03-17-2017, 01:19 PM   #2
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by larysa View Post
I've add one font to my ePub (regular and italic), ...
Without seeing your CSS code, "why" is a guess.

It should be noted that each of the six different weights/variants of Neuton are completely separate fonts. If you have added "one font" then you've added either regular or italic, but not both. If you are embedding the fonts in an ePub, you need to embed both. Also, for reliable testing you need to be sure that you have not installed them on at the OS level on your test computer/device.
dwig is offline   Reply With Quote
Advert
Old 03-18-2017, 07:01 AM   #3
larysa
Zealot
larysa began at the beginning.
 
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
Neuton from google fonts have only one version...
I have put on my ePub regular AND italic Neuton font
I don't have installed this font on my pc...
Now I don't have with me css file...i post this soon...
larysa is offline   Reply With Quote
Old 03-18-2017, 09:10 AM   #4
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: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by larysa View Post
Neuton from google fonts have only one version...
I have put on my ePub regular AND italic Neuton font
I don't have installed this font on my pc...
Now I don't have with me css file...i post this soon...
Newton (as shown at Google Fonts) is a font from the Foundry , Monotype
EDIT
Neuton is the Google font

There are 6 members in that/either font-family

You need to load (with an @font) each (weight/stroke) that you use

Last edited by theducks; 03-19-2017 at 09:49 AM. Reason: wrong name spelling
theducks is offline   Reply With Quote
Old 03-19-2017, 07:19 AM   #5
larysa
Zealot
larysa began at the beginning.
 
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
I have download only neuton regular and neuton regular italic.
Above my css style
larysa is offline   Reply With Quote
Advert
Old 03-19-2017, 07:20 AM   #6
larysa
Zealot
larysa began at the beginning.
 
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
@font-face {
font-family: "Neuton";
font-style: normal;
font-weight: normal;
src: url(../Neuton-Regular.ttf);
}
@font-face {
font-family: "Neuton";
font-style: italic;
font-weight: normal;
src: url(../Neuton-Italic.ttf);
}
p {
display: block;
font-family: "Neuton";
line-height: 1.2em;
font-size: 1em;
font-style: normal;
font-weight: normal;
text-align: justify;
text-indent: 0.5em;
margin: 0;
}
p + p {
display: block;
font-family: "Neuton";
line-height: 1.2em;
font-size: 1em;
font-style: normal;
font-weight: normal;
text-align: justify;
text-indent: 0.5em;
margin: 0;
}
h1 {
display: block;
font-family: "Neuton";
font-style: normal;
font-weight: normal;
margin-top: 2em;
margin-bottom: 5em;
font-size: 1.2em;
text-align: center;
}
larysa is offline   Reply With Quote
Old 03-20-2017, 01:34 PM   #7
larysa
Zealot
larysa began at the beginning.
 
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
All book is write with <p>text mmmm</p>;
title are <h1>title</h1>
and calibre on preview use italic font!
But if change on css style font family: "Neuton"; to "Neuton-regular" or other text after Neuton, calibre see text on regular font but not with Neuton font but with default font on calibre!
This problem is only with calibre preview, on my iPad i see the text correctly!
larysa is offline   Reply With Quote
Old 03-21-2017, 06:40 AM   #8
larysa
Zealot
larysa began at the beginning.
 
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
Same error if put on book <p class:"text"> and add on my css style .text fontfamily: Neuton exc
larysa is offline   Reply With Quote
Old 03-22-2017, 01:53 PM   #9
larysa
Zealot
larysa began at the beginning.
 
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
Same error on preview with another font...(trocchi, always from google/fonts)
larysa is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Edit Book - save error mddizon Editor 3 01-17-2018 01:15 PM
mobi book into calibre possible conversion error? Jdoherty76 Conversion 11 07-19-2014 03:40 PM
error syncing preview window to editor panel eschwartz Editor 1 02-19-2014 01:53 AM
How do I make all .pdf's in my calibre library open in calibre instead of preview morbo3000 Library Management 9 07-30-2011 10:39 AM
Calibre- error uploading book to SD card bratkat64 Calibre 12 12-06-2009 02:14 PM


All times are GMT -4. The time now is 11:33 AM.


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