Skip to content

There is an error "characters outside the range" when I add my own font #472

@tankist-git-2

Description

@tankist-git-2

I try to add my own VLW font into a GUIslice Builder project but is was unsuccessful.

Device hardware:
ESP32 + tft_espi

I follow the instruction on the user_guide to add my own font. There are steps that I've done:

  1. Run Processing -> Create font utility

font_001

  1. Choose font (Aharoni-Bold) and size

font_002

As you can see, I select ALL fonts inside the file including non-Latin ones.
3) I put ahronbd.ttf (original) file into c:\Program Files (x86)\GUIsliceBuilder\fonts\vlw\ folder
4) I put AharoniBold18.vlw (result) file into /data folder of my GUIslice Builder project
5) I edit /templates/builder_fonts.json file to add my font:
"categoryName": "FONT_VLW", "fonts": [ { "familyName": "AharoniBold18.vlw", "displayName": "AharoniBold18", "defineFile": "AharoniBold18", "eFontRefType": "GSLC_FONTREF_FNAME", "pvFontRef": "AHARONI_BOLD_18_VLW", "nFontSz": "18", "logicalName": "ahronbd.ttf", "logicalSize": "18", "logicalStyle": "Bold", "fontRefMode": "GSLC_FONTREF_MODE_1" },

  1. I put TEXT control to the page in "Simulated TFT panel" area of GUIslice Builder
  2. There are settings of this TEXT control:

font_003

  1. I try to see a character map of my new font but it looks ridiculous: it shows 220 chars only

font_004

  1. If I try to set non-latin string into "Text" property of my TEXT control I've gpt an error:

font_005

What is wrong?

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