View Single Post
Old 05-09-2016, 09:21 AM   #1
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Installing/Embedding Font

This is a bit of a strange problem. I know I'm just missing something, but I can't figure it out.

I've been using 'Kirsty' font for a long time with no problems, my CSS entry is {font-family: 'Kirsty'; font-style: italic; } and it embeds as: Embedding font Kirsty-Italic from.... This is all fine, no problems as I said.

Yesterday, I wanted to use the font, but not italic and different size, so I changed to {font-family: 'Kirsty'; font-size: 90%; } and it embeds as: Embedding font KirstyInk-Regular from.... Up until this point, there is no problem. That comes when I tried to read one book on my Kobo Aura, and that section didn't have the right font -- or it just didn't look right, looked like a very large Times Roman or in that type, instead what Kirsty looks like, which is small caps.

I then went back into Editor, and did Check Document. I usually embed fonts as last step before saving and closing document, so this was the first time I did the Check AFTER. I got an entry that says: "WARNING: The CSS font-family name Kirsty does not match the actual font name Kirsty Ink****[fonts.css]"

I do the automatic fix, which changes my CSS entry to 'Kirsty Ink'. On the next book, I changed my entry to 'Kirsty Ink', but that returned an error when I tried to embed, saying: Failed to find fonts for family: Kirsty Ink, not embedding

Just to check, I went to install fonts but when I clicked 'kirsty ink', I get the following:

Spoiler:
Code:
calibre, version 2.56.0
ERROR: Unhandled exception: <b>Error</b>:`C:/Users/XXX/AppData/Roaming/calibre/fonts/kirsty ink.ttf` and `C:\Users\XXX\AppData\Roaming\calibre\fonts\kirsty ink.ttf` are the same file

calibre 2.56 [64bit]  embedded-python: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: Generate Cover && Goodreads && FanFicFare && Count Pages && EpubMerge && Find Duplicates && Save To Format
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\manage_fonts.py", line 266, in install_fonts
  File "site-packages\calibre\gui2\font_family_chooser.py", line 45, in add_fonts
  File "shutil.py", line 69, in copyfile
Error: `C:/Users/XXX/AppData/Roaming/calibre/fonts/kirsty ink.ttf` and `C:\Users\XXX\AppData\Roaming\calibre\fonts\kirsty ink.ttf` are the same file


If I'm going redo all the 30+ that I've already done, I'd rather get the right fix...or find another font if I can't fix.
MerlinMama is offline   Reply With Quote