Skip to content

Font size tag stack & "_stack_pop(): Parameter "current->parent" is null." #35

@DemonBismuth

Description

@DemonBismuth
<C++ Source>  scene/gui/rich_text_label.cpp:4912 @ pop()   
<Stack Trace> richer_text_label.gd:1014 @ _stack_pop()                
richer_text_label.gd:587 @ _parse_tags()                 
richer_text_label.gd:567 @ _parse()                 
richer_text_label.gd:340 @ _set_bbcode()

In my use of RicherTextLabel, I found some issues with font sizes when combined with image [!texture_name] tags.

  1. [int] [] seem to be a different size than the inspector font size. i.e. 24 in the inspector is not the same as [24] []. If anything, [100] [] looks similar to the size of whatever font size I set in the inspector, making it seem like the size is relative, and not absolute like the Read Me page states.
  2. Because I could not reliably use absolute size tags, I used relative size [float] [] instead. I end up adding addition [] end brackets, otherwise the relative size will be carried over to the next line. Example: "[0.7][!my_image]\n[]" would instead have to be written "[0.7][!my_image]\n[][]". Sometimes I would even have to use 3 [] to prevent size leaking to the next line.
  3. Because of my workaround the size leakage in (2), I get the error pasted at the top of this post.

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