From 1084602fecd948ddc67f1e03b3c40fa3b1af1032 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 16 Mar 2018 21:49:58 +0000 Subject: 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 --- ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ide/AndroidStudio3/app/src') 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); -- cgit v1.2.3