Skip to content

DurationRemote: confusion between font and fontsize #42

@Daandelange

Description

@Daandelange

Hello,
Just found out that in Duration Remote, there's a confusion in the testApp::setup().
gui->addTextInput("bla bla", "bla bla", 300);
addTextInput's 3rd argument is the font size (of enum type ofxUIWidgetFontType), not the widget size.
This results a runtime error (nullpointer as font is NULL)

I fixed it by replacing the 3rd argument with OFX_UI_FONT_MEDIUM and everything works fine.
Is that the right behaviour or did something weird happen to ofxUI ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions