Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DurationRemote: confusion between font and fontsize #42

Open
Daandelange opened this issue May 10, 2015 · 1 comment
Open

DurationRemote: confusion between font and fontsize #42

Daandelange opened this issue May 10, 2015 · 1 comment

Comments

@Daandelange
Copy link

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 ?

@Daandelange
Copy link
Author

( it breaks the interface according to the screenshot in the readme.md )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant