Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using 'ms_unicode_arial' font #42

Open
ARSimmons opened this issue Apr 1, 2015 · 1 comment
Open

Problem using 'ms_unicode_arial' font #42

ARSimmons opened this issue Apr 1, 2015 · 1 comment

Comments

@ARSimmons
Copy link

The font file I have 'arial-unicode-regular' (MS license - not free) is not read by dymo. Is true-type free fonts the only option for being legible to PIL?

Error:

Traceback (most recent call last):

File "dymo-label.py", line 242, in
for place in options.load_inpust(input_files, geometry, options.name_field, options.placement_field):
File "I:\TFS_1\Dymo-maser\Dymo__init__.py", line 206, in load_places
yield_places.Point(name, fontfile, fontsize, location, point, radius, prperties, **kwargs)
...

File "C:\Users\ASimmons.irtualenvs\dymo_label_libs\lib\site-packages\PIL\ImageFont.py", line 253, in truetype
return FreeTypeFont(filename, size, index, encoding)
File "C:\Users\ASimmons.irtualenvs\dymo_label_libs\lib\site-packages\PIL\ImageFont.py", line 137, in init
self.font = core.getfont(font, size, index, encoding)
IOError: cannot open resource

...

@ARSimmons
Copy link
Author

UPDATE: I tried switching font files (using a free 'DejaVuSansCondensed') and the error persists. I am using Pillow (the a replacement for pil), could that be tied to this?

Use from PIL import Image instead of import Image. ? (I verified that: \PIL\ImageFont.py does have 'from PIL import image')...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant