06-14-2016, 03:15 PM | #31 |
Grand Sorcerer
Posts: 5,625
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Sounds fine to me, too.
|
03-01-2018, 01:29 AM | #32 |
Member
Posts: 11
Karma: 584334
Join Date: Sep 2012
Location: Champaign, Illinois, USA
Device: Kobo Aura, Nook HD+, Nook Personal Touch, Nook Personal Touch with Glo
|
Hmmm...just installed and ran this plugin, but after running it, clicking on close just made it run again. Clicking on the X to close the window did the same. What did work, was to hit ESC (a few times--perhaps overkill, but it was preventing me from checking its work and saving the file).
I'm running Sigil 0.9.9 on Win10 x64. This is actually the very first time I've installed and run a plugin. Mostly because it's taken me forever to get around to try building an epub from scratch. I'm trying to get my act together so I can provide my blind friend books he has no access to otherwise. |
Advert | |
|
03-01-2018, 03:38 AM | #33 | ||
Grand Sorcerer
Posts: 5,625
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
For the time being, the only way to fix it is to restart Sigil. Quote:
Last edited by Doitsu; 03-01-2018 at 03:44 AM. |
||
04-09-2018, 06:41 PM | #34 | |
Member
Posts: 11
Karma: 584334
Join Date: Sep 2012
Location: Champaign, Illinois, USA
Device: Kobo Aura, Nook HD+, Nook Personal Touch, Nook Personal Touch with Glo
|
Quote:
|
|
04-14-2019, 10:48 AM | #35 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Sigil v. 0.9.13, css_from_fonts v. 0.1.3 phthon v. 3.4.
The plugin worked all right until now, but recent- and steadily I receive this message: Code:
Status: failed Traceback (most recent call last): File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch self.exitcode = target_script.run(container) File "C:\Users\Jürgen\AppData\Local\sigil-ebook\sigil\plugins\CSSFromFonts\plugin.py", line 16, in run font_object = ImageFont.truetype(font_path) File "site-packages\PIL\ImageFont.py", line 280, in truetype File "site-packages\PIL\ImageFont.py", line 145, in __init__ OSError: cannot open resource Error: cannot open resource Edit: Inserting @font-face manually works. Last edited by Leonatus; 04-14-2019 at 10:58 AM. |
Advert | |
|
04-14-2019, 11:29 AM | #36 | |
Grand Sorcerer
Posts: 5,625
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
What's the name of the font and where did you download it from? |
|
04-15-2019, 04:35 AM | #37 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
|
04-15-2019, 05:03 AM | #38 |
Grand Sorcerer
Posts: 5,625
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
PIL is a Python Image Library.
The plugin worked fine with this font on my Windows machine and generated the following CSS declaration: Code:
@font-face { font-family: 'FoglihtenNo04'; font-weight: normal; font-style: normal; src: url('../Fonts/FoglihtenNo04-070.otf'); } Does the plugin work with other fonts or do you get the same error message for all fonts? |
04-15-2019, 11:36 AM | #39 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
I tried the same font on my other computer (both Win 10, 32 bit), where I had Sigil v. 0.9.10 installed, and everything is exactly as in your example (as it used to be with my first computer as well). I installed Sigil v. 0.9.13, and everything is o.k. as well.
Whereas, on my first computer, I reloaded the font from another source, and there came the same error message. I tried it with a different font, same error. Edit: I tried it on a different ebook with the same result. Nota bene: adding the @font-face manually, everything is all right. And, strange enough, after having transferred the origiginal epub to my second computer with the same loaded font, the plugin works without any issue. Last edited by Leonatus; 04-15-2019 at 11:46 AM. |
04-15-2019, 12:24 PM | #40 |
Grand Sorcerer
Posts: 5,625
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Most likely the font that causes the error is corrupted. Unless you can reproduce this error with a well-known font downloaded from the font developer's website, there's nothing I can do about it.
|
04-15-2019, 02:39 PM | #41 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Well, I thank you for your help so far, and I don't want to be urging. However, I'm wondering, when a corrupted font should be the culprit, how the issue can occur with any other font that I use, and how it can be that, running the identic epub on another computer, the issue doesn't appear, and how the font can work if I add the respective css manually.
I downloaded and installed the plugin from scratch, but to no avail. |
04-15-2019, 03:23 PM | #42 |
Grand Sorcerer
Posts: 5,625
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
You didn't mention that the issue also occurs with other fonts and you didn't provide a test epub. Obviously, I can only fix issues that I (or other Sigil users) can reproduce.
|
04-15-2019, 03:26 PM | #43 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Of course, that's true. But the strange is that the issue occurs on one computer, but not on the other. Thus, I fear, the problem might not be reproducable.
|
04-15-2019, 06:21 PM | #44 | |
Grand Sorcerer
Posts: 12,417
Karma: 74317824
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Quote:
|
|
04-16-2019, 04:06 AM | #45 | |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Accessing fonts from CSS | JSWolf | Kobo Reader | 11 | 07-03-2015 10:49 AM |
How to invoke different fonts in CSS 2.3.1? | xuyn2003 | Kobo Reader | 32 | 01-06-2013 09:52 PM |
working with fonts in css | jayz | Kindle Formats | 9 | 10-29-2012 04:09 PM |
Possible to embed fonts in CSS of .lit file? | tanzer21 | Calibre | 9 | 06-30-2010 07:26 PM |
Suggestion: let's create typographic CSS | sic | Sony Reader | 2 | 08-20-2007 07:17 PM |