Skip to content

alias FindPkFileCallback


(alias) FindPkFileCallback = fun(asked_name: string, dpi: integer) -> string?

Find a PK font bitmap file.

Like find_font_file, but for pk bitmap files. This callback takes two arguments: name and dpi. In your callback you can decide to look for:

<base res>dpi/<fontname>.<actual res>pk

but other strategies are possible. It is up to you to find a “reasonable” bitmap file to go with that specification.

😱 Types incomplete or incorrect? 🙏 Please contribute!