diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-16 21:49:58 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-16 21:49:58 +0000 |
| commit | 1084602fecd948ddc67f1e03b3c40fa3b1af1032 (patch) | |
| tree | 0d2b39b875d9667d05e8743a6710c42d4c52029e /ide/AndroidStudio3/app | |
| parent | 9bf59b88bd8114241a7497384402ef87f7e96744 (diff) | |
Android: loading and rendering multiple fonts at multiple sizes.
This code is still a total mess and incredibly inefficient.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'ide/AndroidStudio3/app')
| -rw-r--r-- | ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx index ca45221b4..37cfed565 100644 --- a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx +++ b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx @@ -70,12 +70,25 @@ int main(int argc, char **argv) btn = new MyButton((win->w()-280)/2, 200, 280, 35, "Hello, Android!"); btn->color(FL_LIGHT2); + btn->labelsize(30); btn->callback( [](Fl_Widget*, void*) { Fl::add_timeout(1.0, hello_cb, NULL); } ); + btn = new MyButton((win->w()-280)/2, 200+40, 280, 35, "Hello, Android!"); + btn->labelfont(FL_TIMES_BOLD_ITALIC); + btn->labelsize(30); + + btn = new MyButton((win->w()-280)/2, 200+2*40, 280, 35, "Hello, Android!"); + btn->labelfont(FL_COURIER_BOLD_ITALIC); + btn->labelsize(30); + + btn = new MyButton((win->w()-280)/2, 200+3*40, 280, 35, "Hello, Android!"); + btn->labelfont(FL_SCREEN); + btn->labelsize(30); + win->end(); win->show(argc, argv); |
