Skip to content

OSError: Could not locate the file 'cmr10'. #7

Closed
@riku

Description

@riku

When I use

text.set(text.UnicodeEngine)

got error

Traceback (most recent call last):
  File "d:/MyFiles/LearnPython/pyx-unicode.py", line 3, in <module>
    text.set(text.UnicodeEngine)
  File "C:\Python36-32bit\lib\site-packages\pyx\text.py", line 1814, in set
    defaulttextengine = engine(*args, **kwargs)
  File "C:\Python36-32bit\lib\site-packages\pyx\text.py", line 1708, in __init__
    with config.open(fontname, [config.format.type1]) as f:
    raise IOError("Could not locate the file '%s'." % filename)
OSError: Could not locate the file 'cmr10'.

How to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions