Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2012, 09:09 AM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,166
Karma: 4792399
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
New font troubles

Hi all,

I wanted to try the Calendas (www.atipo.es) font in my reader. It can be downloaded from this link: http://www.atipo.es/downloads/Calendas.zip

The problem is the three variants (regular, italic, bold) don't share the same font family name. Well, I fix it with FontForge. But now when I copy the fonts to the reader, the "default" font in the family is the italic, even the menu item to select the font uses the italic variant.

Does anyone know what could be the cause for this and how to fix it?
Jellby is offline   Reply With Quote
Old 05-03-2012, 02:08 PM   #2
DSpider
Evangelist
DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.
 
DSpider's Avatar
 
Posts: 413
Karma: 326969
Join Date: Nov 2009
Location: Romania
Device: iPod touch 2G (16 GB)
I have no experience with ePub, but from looking at the wiki, the CSS looks to be:

Code:
@font-face {
	font-family : "Embedded_font_name";
	font-style : normal;
	font-weight : normal;
	src : url("path/Embedded_font_name.ttf");
}
Calendas Regular is what you're looking for, so that would probably translate as "font-style : regular;".

But yeah, it's kinda messed up, having 3 separate entries for the same font. Just change the Family Name (and nothing else, don't bother) from "Calendas Bold" and "Calendas Regular" to just "Calendas". That should take care of it.

Click image for larger version

Name:	calendas.png
Views:	81
Size:	9.4 KB
ID:	86001

Last edited by DSpider; 05-03-2012 at 05:55 PM. Reason: "Calendas Regular"
DSpider is offline   Reply With Quote
Old 05-03-2012, 03:12 PM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,166
Karma: 4792399
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Sorry, I wasn't clear. I don't mean embedding the fonts, I know how to do it.

My problem is with installing/using the fonts in the reader (not on an ebook file). My reader allows to just copy the font files in the device, and then I can choose whichever font I like as my "default" text font. With other fonts, I copy the regular, bold, italic and bold-italic files, and it works as expected (a single entry in the font selection menu, displayed with the regular variant). With this font, however, once I edit the family names in the font files, I get the italic font in the selection menu, and it's the italic that becomes the default text font. It seems that the italic variant is claiming to be the "normal" one in the family.
Jellby is offline   Reply With Quote
Old 05-03-2012, 03:43 PM   #4
DSpider
Evangelist
DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.
 
DSpider's Avatar
 
Posts: 413
Karma: 326969
Join Date: Nov 2009
Location: Romania
Device: iPod touch 2G (16 GB)
I feel like I wasn't very clear either. I meant it like this:

Using FontForge just change the Family Name (and nothing else, don't bother) from "Calendas Bold" and "Calendas Regular" to just "Calendas". That should take care of it.

Last edited by DSpider; 05-03-2012 at 05:56 PM.
DSpider is offline   Reply With Quote
Old 05-03-2012, 04:08 PM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,166
Karma: 4792399
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Yes, that's what I tried, and the effect is what I described. I also asked the creators and they sent me a version with the family name corrected, the behaviour is the same.
Jellby is offline   Reply With Quote
Old 05-03-2012, 05:53 PM   #6
DSpider
Evangelist
DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.
 
DSpider's Avatar
 
Posts: 413
Karma: 326969
Join Date: Nov 2009
Location: Romania
Device: iPod touch 2G (16 GB)
They didn't change anything. I downloaded the ZIP archive again and the files show up in 7-Zip as modified in 2011. Everything looks the same too.

Anyway, are you sure you changed the Family Name? Open the bold version in FontForge and check again. It should say "Calendas", not "Calendas Bold". Same for the "Calendas Regular".
DSpider is offline   Reply With Quote
Old 05-03-2012, 06:26 PM   #7
DSpider
Evangelist
DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.
 
DSpider's Avatar
 
Posts: 413
Karma: 326969
Join Date: Nov 2009
Location: Romania
Device: iPod touch 2G (16 GB)
Maybe this will help.

If I delete all the name fields (PS Font Name, Full Name, Menu Name, FOND Name) and click "Build Names", this comes up:

Click image for larger version

Name:	1.png
Views:	81
Size:	28.6 KB
ID:	86023 Click image for larger version

Name:	1_after.png
Views:	82
Size:	28.5 KB
ID:	86026

Click image for larger version

Name:	2.png
Views:	84
Size:	28.6 KB
ID:	86024 Click image for larger version

Name:	2_after.png
Views:	86
Size:	29.0 KB
ID:	86027

Click image for larger version

Name:	3.png
Views:	89
Size:	28.7 KB
ID:	86025 Click image for larger version

Name:	3_after.png
Views:	80
Size:	29.0 KB
ID:	86028

Maybe your e-reader uses the "Menu Name" field? I'm not sure... since computer software (Windows or Linux) seem to pair them up by Family Name. Try to match them with whatever FontForge calls them and see what happens. Also, you should probably reboot the device or something after you add the fonts. Just sayin'. It could be something obvious like that.
DSpider is offline   Reply With Quote
Old 05-04-2012, 06:54 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,166
Karma: 4792399
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by DSpider View Post
They didn't change anything. I downloaded the ZIP archive again and the files show up in 7-Zip as modified in 2011.
Yes, sorry, they sent me the modified files by e-mail.

Quote:
Anyway, are you sure you changed the Family Name? Open the bold version in FontForge and check again. It should say "Calendas", not "Calendas Bold". Same for the "Calendas Regular".
I'm pretty sure, all three family names said "Calendas", either in the modified files they sent me or in the ones I renamed myself. But the fields shown by FontForge are named differently than those in your screenshots, there's a "PS Names" tab, and a "TTF Names" tab. I tried filling up everything correctly, anyway.

Quote:
Also, you should probably reboot the device or something after you add the fonts. Just sayin'. It could be something obvious like that.
You are right. Although the device seems to reboot as soon as it is disconnected from the computer, I'll try removing the fonts, rebooting, copying the fonts again, etc.
Jellby is offline   Reply With Quote
Old 05-04-2012, 11:18 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,166
Karma: 4792399
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I tried deleting, rebooting, copying, rebooting... Still the same.

In case it help, here are what I think are the relevant properties in FontForge:
Attached Thumbnails
Click image for larger version

Name:	regular1.png
Views:	82
Size:	37.5 KB
ID:	86053   Click image for larger version

Name:	regular2.png
Views:	83
Size:	61.4 KB
ID:	86054   Click image for larger version

Name:	italic1.png
Views:	78
Size:	38.3 KB
ID:	86055   Click image for larger version

Name:	italic2.png
Views:	84
Size:	61.1 KB
ID:	86056   Click image for larger version

Name:	bold1.png
Views:	79
Size:	38.1 KB
ID:	86057   Click image for larger version

Name:	bold2.png
Views:	75
Size:	61.7 KB
ID:	86058  
Jellby is offline   Reply With Quote
Old 05-04-2012, 12:01 PM   #10
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,166
Karma: 4792399
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Ah... I think I've found it. The italic font was correctly defined as italic, but it had the slant as 0. I clicked the "Guess" button (it changed to -12 or so) and saved as a new OTF file. Now the default font is the regular one.

But the font doesn't look so nice, the characters' height looks uneven, probably due to the limited screen resolution, or bad hinting/antialiasing.

(Or it could be the fact that I changed "Normal" to "Regular" in the weights.)

Last edited by Jellby; 05-04-2012 at 12:05 PM.
Jellby is offline   Reply With Quote
Old 05-04-2012, 12:10 PM   #11
DSpider
Evangelist
DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.
 
DSpider's Avatar
 
Posts: 413
Karma: 326969
Join Date: Nov 2009
Location: Romania
Device: iPod touch 2G (16 GB)
Don't change the slant... They're already drawn slanted, you don't need to specify any additional values.


How do they show up on the e-reader? "Calendas-Bold" or "Calendas Bold"?

Because if it shows up as "Calendas Bold", then the e-reader probably uses the "Name For Humans" field (which I think corresponds to "Menu Name" from TypeTool) to group them, instead of by Family Name like in basically any other computer software. Does this make any sense? Try changing the "Name For Humans" field to just "Calendas" for all 3 files.
DSpider is offline   Reply With Quote
Old 05-04-2012, 12:18 PM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,166
Karma: 4792399
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
They show as "Calendas", which is the family name.

Changing the slant only means changing a number, the glyph shapes are not altered (but a slanted guiding line can be seen if I edit a glyph). I've checked other working fonts and they have a non-zero slant defined for italics.
Jellby 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
Mobi2html troubles whitearrow Kindle Formats 8 07-19-2009 07:41 PM
PDF troubles coldcell Workshop 5 01-30-2008 01:09 AM
Cybook Troubles imperceptible Bookeen 6 01-27-2008 04:32 PM
ConvertLit troubles SluggyJohnson Sony Reader 16 01-01-2008 12:12 PM
fictionwise troubles woldinghamuk Fictionwise eBookwise 4 12-31-2007 09:26 AM


All times are GMT -4. The time now is 10:56 AM.


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