Closed bubobu closed 1 year ago
can you change line 121 to 124 of C:\Users\user\PycharmProjects\manga-image-translator\manga_translator\rendering\text_render.py
to
def get_cached_font(path: str) -> freetype.Face:
if not font_cache.get(path):
print('loading font from', path)
font_cache[path] = freetype.Face(path)
return font_cache[path]
so we can be sure that the files do exist?
Why aren’t you just using system fonts instead?
Why aren’t you just using system fonts instead?
some system does not have CJK fonts
If I got that right cfg fonts are Chinese, Japanese etc right. Of course you need to have the font installed before using them, but when you want to translate to one of these languages your pc is most likely able to. I played around with pango/Cairo(pdf output) and they require the font family instead and heave no easy way to set the font from a ttf file. I think python can install fonts with fonttools
I resolve this problem. by changing font location. so it can perceive font file.
Issue
I set font path by absolute, content root, but i cant solve this problem. and reinstall project, freetype. I also refer tio #57 .
Command Line Arguments
Console logs