Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
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
Old 05-09-2016, 09:42 AM   #2
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: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
One thing I see is the font FILE NAME has a space
Legal, but not a good practice

FWIW the Validate message is about the Internal (to the font) name
theducks is online now   Reply With Quote
Advert
Old 05-09-2016, 10:18 AM   #3
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
Quote:
Originally Posted by theducks View Post
One thing I see is the font FILE NAME has a space
Legal, but not a good practice

FWIW the Validate message is about the Internal (to the font) name
I didn't name it, that's how it was installed. In CSS, that is how it automatically fixed the name, and I did reproduce that.

I decided to check my last "fixed" book with this font and I see it embedded both 'Kirsty-Italic' and 'Kirsty-Regular' and didn't return that Document Check Warning. Not sure why Kirsty-Italic, but it doesn't cause a problem so I don't care right now. This book shows the correct font on my Kobo, as well.

So I went back to the 3 books I had checked before asking my question. I replaced the CSS and tried embedding the fonts again, and they still exhibit the same error -- for lack of a better term. It is the same CSS, and I don't see any other difference, so I'm at a loss.

I'm going to go through each one individually, working backwards from ones that 'work'. I know I must just not be seeing some little thing, but I can't for the life of me figure it out.

I would delete(or uninstall) 'Kirsty Ink', but I'm not confident enough for that!
MerlinMama is offline   Reply With Quote
Old 05-09-2016, 10:55 PM   #4
Jon4Fun
Member
Jon4Fun began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
Remove from Calibre list of AVAILABLE "Embed Font Family"

Hi,
Open question concerning Calibre and FONTS.

I want to remove from Calibre-[preferences]-[common options]-[fonts]-[embed font family] a list of "font families".
In this case it is different versions of Charis Sil that I have used in the past.

I have just one version, which I am using, that I have selected but all the old/other versions are still showing as options.
I have manually deleted the fonts folder in Calibre config folder and recreated with ONLY the Charis Sil family I am using.
I watched it create a new .json file in that folder.

I know it doesn't effect anything but I just want to have a tidy install as it took me about 40 hours of work to find a Charis Sil font that works with the latest firmware and the patches with [fullpagereading] set to TRUE and NOT have the issue with lines at top and bottom margin going past the page.
Anyone with a Kobo Glo will know what I am talking about above.

But my question is for Calibre - how do I just show 1 Charis Sil Font in list of [embed font family]?

Thanks and I hope someone has an easy answer.
BTW, I do not know how to code in python so I hope it is not a coding issue.

Thank you for your time.

My apologies if this is in the wrong forum. I searched and this seemed the only place where fonts were being discussed.

Last edited by Jon4Fun; 05-09-2016 at 10:56 PM. Reason: make a change
Jon4Fun is offline   Reply With Quote
Old 05-09-2016, 11:05 PM   #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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
THat list is populated by scanning the files on your computer. If you have removed the font files from calibre's config font directory, and it still shows up, then it must be present elsewhere on your computer.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-09-2016, 11:41 PM   #6
Jon4Fun
Member
Jon4Fun began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
Want to see Charis SIL Compact ONLY!

Hi kovidgoyal,
The simple answer is YES - the files are still present on my computer BUT they are no longer installed, in Calibre or in Windows.
They are embedded in the eBooks I converted using Calibre - do I have RE-convert every book?

Do I have to remove the physical files from my backup folders for the list to tidy up?

I ask as I had to CHOOSE to ADD them to Calibre, it did not scan my computer.

Thank for the quick reply even if it does not help me immediately.

Cheers
Jon
Attached Thumbnails
Click image for larger version

Name:	Charis SIL Compact - ONLY.jpg
Views:	239
Size:	223.8 KB
ID:	148567  

Last edited by Jon4Fun; 05-09-2016 at 11:54 PM.
Jon4Fun is offline   Reply With Quote
Old 05-09-2016, 11:55 PM   #7
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If they are not in any of the font folders on your computer then they must still be in the calibre config font folder. Software is not magic. That list is populated from two places: The calibre config font folder and the system font folders. If there is an entry in that list, then the font files must be in one of those two places.

It does not matter what fonts you have inside your ebooks.
kovidgoyal is offline   Reply With Quote
Old 05-10-2016, 12:11 AM   #8
Jon4Fun
Member
Jon4Fun began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
Thanks. I am now only 99.999999999% sure that I do not have the fonts installed.

May I PLEASE confirm with YOU that the Calibre font folder location is the following; I am using Win10?
C:\Users\Jon\AppData\Roaming\calibre\fonts

And Windows is C:\Windows\Fonts - I double-checked that I did not have any other CHARIS fonts installed in the Windows fonts folder and only 1 font (4 types, Regular, Bold, Italic, BoldItalic) is installed in the calibre folder.

If it is not this then it is one of the mysteries of Windows. I do not know where else it would be installed. BUT, I will keep looking.

Thank you for your time.

I just had a thought, I have Calibre and Calibre64 installed - do they keep fonts in different locations?
Jon4Fun is offline   Reply With Quote
Old 05-10-2016, 12:20 AM   #9
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Jon4Fun View Post
Thanks. I am now only 99.999999999% sure that I do not have the fonts installed.

May I PLEASE confirm with YOU that the Calibre font folder location is the following; I am using Win10?
C:\Users\Jon\AppData\Roaming\calibre\fonts
That's probably the directory, but the best way to get there is to go to the Miscellaneous page of the calibre preferences and click the button to open the configuration directory. That way you know you have the right directory for the calibre you are running.
Quote:
And Windows is C:\Windows\Fonts - I double-checked that I did not have any other CHARIS fonts installed in the Windows fonts folder and only 1 font (4 types, Regular, Bold, Italic, BoldItalic) is installed in the calibre folder.

If it is not this then it is one of the mysteries of Windows. I do not know where else it would be installed. BUT, I will keep looking.
Don't look there. Open Fonts in the control panel. That will show what is actually installed and available for applications to use.
Quote:
Thank you for your time.

I just had a thought, I have Calibre and Calibre64 installed - do they keep fonts in different locations?
They use the same configuration directory.
davidfor is offline   Reply With Quote
Old 05-10-2016, 12:21 AM   #10
Jon4Fun
Member
Jon4Fun began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
I just checked and on my system the x86 and x64 version both use the same fonts folder in C:\Users\Jon\AppData\Roaming\calibre\fonts
Jon4Fun is offline   Reply With Quote
Old 05-10-2016, 12:26 AM   #11
Jon4Fun
Member
Jon4Fun began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
We crossed messages. Please see attached pic.

Note, I did a search for CHARIS which is highlighted in top right of control panel
Attached Thumbnails
Click image for larger version

Name:	Charis SIL Compact - ONLY.jpg
Views:	194
Size:	202.2 KB
ID:	148568  
Jon4Fun is offline   Reply With Quote
Old 05-10-2016, 12:34 AM   #12
Jon4Fun
Member
Jon4Fun began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
I know it SHOULDN'T make a difference but I'm going to reboot and clear my temporary files. See if that makes a difference.
Check back in about 15mins or so.
Jon4Fun is offline   Reply With Quote
Old 05-10-2016, 01:14 AM   #13
Jon4Fun
Member
Jon4Fun began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
Hi,
Did a full reboot (not a false hibernation one either) and ran CCleaner on the way down. See attached, no change.

I have no idea what program I have installed it in that Calibre could be reading or that I would use that particular font. It is ONLY for my Kobo.

Thanks for your input.
Attached Thumbnails
Click image for larger version

Name:	Calibre - After CCleaner and Reboot.jpg
Views:	236
Size:	230.0 KB
ID:	148569  
Jon4Fun is offline   Reply With Quote
Old 05-10-2016, 01:38 AM   #14
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Just to check, the problem is the "Charis SIL Modified" and "Charis SIL SmCp Modified" fonts appearing in the font dialog? If so, there is something wrong with how they are displayed. The names aren't displayed as the font. That suggests that the names are still in a list somewhere, but the font files are no longer there. What happens if you select one of those fonts and press OK? Or "Add font" or whatever it is to embed the font.

Do the fonts appear if you open a font selection dialog in another application? If they do, that suggests Windows is the culprit. If they don't, it points more to calibre.

I think the thing to do is scan the registry for these name and search through all the files in the calibre config directory as well. Another thing to do is to run calibre in debug mode and see if there are any errors when the font selection is opened.
davidfor is offline   Reply With Quote
Old 05-10-2016, 01:54 AM   #15
Jon4Fun
Member
Jon4Fun began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
I shall go through those steps and post back but not today. Going to actually 'read' for a while.

Thank you.
Jon4Fun is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding font in books that already have embedded font Barty Calibre 2 10-16-2013 11:38 PM
Font Embedding? teh603 Writer2ePub 75 01-08-2013 07:57 PM
Font embedding sachin Sigil 36 03-30-2012 03:26 AM
Font embedding sachin Sigil 3 03-21-2012 09:19 AM
Do I need a font license if all I'm doing is referring to the font (not embedding)? Stodder Workshop 21 04-21-2011 04:19 AM


All times are GMT -4. The time now is 09:50 AM.


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