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 12-03-2014, 05:30 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Font discrimination

Hi

1. Discrimination
I use a main embedded font (Linux Libertine O) declared in the body. However for some styles (book index for example) I also use a dedicated smallcap font (Linux Libertine Capitals) declared for some styles.

For some reason, the Calibre editor does not accept to subset it and discard it as "unused". This font provide smallcaps and only smallcaps.

Quote:
@font-face {
font-family:'Linux Libertine Capitals';
font-weight: normal;
font-style: normal;
src:url(../styles/LinLibertine_aS.ttf) format('truetype');
}
Two styles using it:
Quote:
p.smcpindex {margin-left:1.0cm;margin-right:0.499cm;margin-top:0.0cm;margin-bottom:0.101cm;border:none;padding:0;background-color:transparent;text-indent:-0.499cm;text-align:justify;font-family:'Linux Libertine Capitals';}
h2 {page-break-before:always;margin-left:0.0cm;margin-right:0.0cm;margin-top:1.499cm;margin-bottom:1.0cm;border:none;padding:0.0cm;text-indent:0.0cm;text-align:center;font-family:'Linux Libertine Capitals';font-style:normal;font-variant:normal;font-weight:normal;text-decoration:none;text-transform:none;clear:left}
Question: what must I do to force the Calibre editor to take it into account (the Inspector can see it)?

2. Another thing is a constant complaint about mime-type for ttf fonts. What exactly should I write and where to get rid of this warning message?
roger64 is offline   Reply With Quote
Old 12-03-2014, 05:34 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: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1. You need to provide an complete example book

2. The warning about font mimetypes has all the information needed to fix the problem and even a link to fix it automatically
kovidgoyal is offline   Reply With Quote
Advert
Old 12-03-2014, 05:58 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thnaks for your reply

I will try to provide you with an example book asap.
roger64 is offline   Reply With Quote
Old 12-03-2014, 07:13 AM   #4
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
1 discrimination

I cannot attach even a zip file to MobileRead, so there is the link to essai.epub on Mega
https://mega.co.nz/#!dJcGyTzJ!XmL6ug...2rtkGLlfEtEnn8

It includes eight fonts,
- four from the main otf family Linux Libertine (only the regular one is used for the body) and
- four ttf fonts (only Linux Libertine Capitals is used for two styles - h2 and smcpcorps).

If I ask to subset fonts, Calibre discards the ttf one even if it is declared. Normally Calibre should keep and subset one otf (Regular) and one ttf (Capitals) . It should discard the others.

2. Error message
This is the message I read many times for many months.

Quote:
Le fichier OEBPS/styles/linlibertine_c-4.0.4ro-webfont.ttf a son type MIME spécifié à application/x-font-ttf dans le fichier OPF. Le type MIME recommandé pour les fichiers avec l'extension "ttf" est application/x-font-truetype. Vous devriez changer soit l'extension du fichier soit le type MIME spécifié dans le fichier OPF.
I know that Calibre can correct automatically this ttf and true-type question and I use it, but I do not understand how to avoid it in the first place. Hopefully, there are four ttf fonts, maybe someone will show me how to achieve this. I use Linux Mint 64 bits.
roger64 is offline   Reply With Quote
Old 12-03-2014, 07:31 AM   #5
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: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Like the message says, the correct mimetype for your font file is

application/x-font-truetype

not

application/x-font-ttf

If you want to avoid that errors, make sure that is the media type set in the OPF file for the font.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-03-2014, 07:56 AM   #6
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: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And your embedding problems are caused by format(truetype) in in the @font-face rule. Remove that and you should be fine.
kovidgoyal is offline   Reply With Quote
Old 12-03-2014, 08:24 AM   #7
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
I dare not say for how long I have been doing this way

anyway now everything is perfectly fine and I very much!
roger64 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
You think geo restrictions are, well, restrictive? Enter OS discrimination amoroso General Discussions 30 08-11-2010 12:34 AM
Kindle thead locked, due to discrimination Kevin R Feedback 35 08-09-2010 02:02 AM
Discrimination? booklover iRex 8 05-06-2008 09:53 PM


All times are GMT -4. The time now is 06:45 AM.


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