Skip to content

[rcore][android][nim] LoadFont() doesn't work with system fonts? #5007

@vaguinerg

Description

@vaguinerg

Trying to load “/system/fonts/AndroidClock.ttf” should be enough to reproduce the error.

BTW, we could have something similar to this builtin?: https://gist.github.com/VaguinerG/28004e9a47555df081392c9453740e47

My current workaround is to read the file from outside raylib:

  let foundFont = getSystemFonts()[0]
  
  let fontData = readFile(foundFont)
  let fontBytes = cast[seq[uint8]](fontData)
  let extension = splitFile(foundFont).ext
  let menuFont = loadFontFromMemory(extension, fontBytes, 64, 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions