|  12-03-2014, 05:30 AM | #1 | ||
| Wizard            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: 
 Quote: 
 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? | ||
|   |   | 
|  12-03-2014, 05:34 AM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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 | 
|   |   | 
| Advert | |
|  | 
|  12-03-2014, 05:58 AM | #3 | 
| Wizard            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. | 
|   |   | 
|  12-03-2014, 07:13 AM | #4 | |
| Wizard            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: 
 | |
|   |   | 
|  12-03-2014, 07:31 AM | #5 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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. | 
|   |   | 
| Advert | |
|  | 
|  12-03-2014, 07:56 AM | #6 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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.
		 | 
|   |   | 
|  12-03-2014, 08:24 AM | #7 | 
| Wizard            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! | 
|   |   | 
|  | 
| 
 | 
|  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 |