Invalid charmap handle?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
zirkkun
Newbie
Posts: 6
Joined: Fri Jan 25, 2019 11:02 pm
Projects: Undertale: Act to Flirt
Deviantart: zirkkun
Contact:

Invalid charmap handle?

#1 Post by zirkkun »

Hi there! I'm mid trying to code a little Easter Egg for my game using wingdings font, which I have put in to my game folder, but Ren'Py for some reason when I launch the game and get to the Easter Egg, this happens:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/home.rpy", line 95, in script
    wd "ENTRY NUMBER SIXTEEN"
FreetypeError: 38: invalid charmap handle

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/home.rpy", line 95, in script
    wd "ENTRY NUMBER SIXTEEN"
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\ast.py", line 708, in execute
    renpy.exports.say(who, what, *args, **kwargs)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\exports.py", line 1345, in say
    who(what, *args, **kwargs)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\character.py", line 1142, in __call__
    self.do_display(who, what, cb_args=self.cb_args, **display_args)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\character.py", line 842, in do_display
    **display_args)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\character.py", line 591, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\ui.py", line 297, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\core.py", line 2702, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\core.py", line 3194, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\core.py", line 2094, in draw_screen
    renpy.config.screen_height,
  File "renpy/display/render.pyx", line 490, in renpy.display.render.render_screen (gen\renpy.display.render.c:6805)
    rv = render(root, width, height, st, st)
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\screen.py", line 675, in render
    child = renpy.display.render.render(self.child, w, h, st, at)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\display\layout.py", line 1127, in render
    st, at)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\text\text.py", line 1996, in render
    virtual_layout = Layout(self, width, height, renders, drawable_res=False, size_only=True)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\text\text.py", line 626, in __init__
    glyphs = ts.glyphs(s, self)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\text\text.py", line 242, in glyphs
    fo = font.get_font(self.font, self.size, self.bold, self.italic, 0, self.antialias, self.vertical, self.hinting, layout.oversample)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\text\font.py", line 699, in get_font
    face = load_face(fn)
  File "C:\Users\name\Desktop\Renpy\renpy-7.3.5-sdk\renpy\text\font.py", line 642, in load_face
    rv = ftfont.FTFace(font_file, index, orig_fn)  # @UndefinedVariable
  File "ftfont.pyx", line 187, in renpy.text.ftfont.FTFace.__init__
FreetypeError: 38: invalid charmap handle

Windows-8-6.2.9200
Ren'Py 7.3.5.606
[[Act]] to [[Flirt]] 1.0
Tue May 12 18:17:41 2020
I previously tried to look up the error code and found this topic: viewtopic.php?t=15831
... which essentially told me there could be a problem with the characters I had available to type with.
I tested every character I could think of in the font to make sure it worked in an outside program, but it didn't seem like any were missing. My next thought was that there was no available italics or bold version of the font, but testing them again, all of them seem to have that option available.
EDIT: I also tried this with using all lowercase instead of uppercase. The same result happened.

Is there something else that I could be missing, or could this error mean something else, or is it just not possible for a wingdings-like font to work in Ren'py?

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Invalid charmap handle?

#2 Post by isobellesophia »

Maybe RenPy can't handle wingdings, because its font has a few characters does not really fit up the font or the game itself, why not try to use a encoder? Maybe it will works, i even used morse code for example by just copy and paste easily.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
zirkkun
Newbie
Posts: 6
Joined: Fri Jan 25, 2019 11:02 pm
Projects: Undertale: Act to Flirt
Deviantart: zirkkun
Contact:

Re: Invalid charmap handle?

#3 Post by zirkkun »

isobellesophia wrote: Wed May 13, 2020 4:26 am Maybe RenPy can't handle wingdings, because its font has a few characters does not really fit up the font or the game itself, why not try to use a encoder? Maybe it will works, i even used morse code for example by just copy and paste easily.
Unfortunately, if I try to copy and paste the unicode that shows up from online encoders, it just shows up as boxes:

Image

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Invalid charmap handle?

#4 Post by isobellesophia »

zirkkun wrote: Wed May 13, 2020 11:07 am
isobellesophia wrote: Wed May 13, 2020 4:26 am Maybe RenPy can't handle wingdings, because its font has a few characters does not really fit up the font or the game itself, why not try to use a encoder? Maybe it will works, i even used morse code for example by just copy and paste easily.
Unfortunately, if I try to copy and paste the unicode that shows up from online encoders, it just shows up as boxes:

Image
Take a look at this, im not really good when it comes to unicode.

viewtopic.php?t=35848

Or you can simple make an image for it.

https://www.renpy.org/doc/html/text.html#text-tag-image
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
zirkkun
Newbie
Posts: 6
Joined: Fri Jan 25, 2019 11:02 pm
Projects: Undertale: Act to Flirt
Deviantart: zirkkun
Contact:

Re: Invalid charmap handle?

#5 Post by zirkkun »

I was actually able to find an alternate font that worked for the purpose that I wanted and worked in Ren'py. But thank you for the help!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]