ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
166 stars 35 forks source link

Teensy (ili9341_t3) font issues #103

Closed MVogtDD closed 4 years ago

MVogtDD commented 4 years ago

Hello,

I just had some trouble working around two bugs of the font handling of the current builder (v.0.15.b001):

  1. When setting a font under Options->"Keypad" or "Keypadtext", which is not used otherwise (for example for a text label or text button), an invalid font pointer is being used on calling gslc_ElemXKeyPadCreate_Num leading to a runtime crash when the popup is displayed. Workaround: Creating a " " text label with the font being used for Keypad/Keypadtext

  2. E_TY_5X8PT7B is being referenced to in the GSLC header file even if the built in font is not being used at all leading to a compiler error. Workaround: Creating a " " text label with the built in font.

I'm using the GUISlice teensy-adagfx-ili9341_t3-xpt2046 config.

Best regards, Marcus

Pconti31 commented 4 years ago

I see the problem now. I have assigned this bug #182 Code gen is in this case putting out:

if (!gslc_FontSet(&m_gui,E_TY_5X8PT7B,GSLC_FONTREF_PTR,NULL,1)) { return; }

m_pElemKeyPad = gslc_ElemXKeyPadCreate_Num(&m_gui, E_ELEM_KEYPAD, E_POP_KEYPAD, &m_sKeyPad, 65, 80, E_TY_ARIAL8, &sCfg);

Paul--

Pconti31 commented 4 years ago

fixed in hotfix 0.15.b002

MVogtDD commented 4 years ago

Thanks a lot, Paul! Your work is very much appreciated.