From e599a0194d14ff36b29b8baa2dfc47230d382f92 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 17 Mar 2018 19:32:05 +0000 Subject: Android: added font access into Android package via Assets, added font fallbacks, added emergency font as an asset, added graceful behavior when absolutely no font could be loaded. Next: add other font related calls, add clipping git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- README.Android.txt | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'README.Android.txt') diff --git a/README.Android.txt b/README.Android.txt index 58c817e48..899229996 100644 --- a/README.Android.txt +++ b/README.Android.txt @@ -1,20 +1,21 @@ + README.Android.txt - Building and using FLTK with Android Studio 3 ------------------------------------------------------------------- +================================================================== WARNING: FLTK FOR ANDROID IS WORK IN PROGRESS IN A PRETTY EARLY STAGE. - CONTENTS -========== +CONTENTS +-------- 1 Building FLTK with Android Studio 3 - 2 Limitation of FLTK on Android + 2 Extensions and limitation of FLTK on Android 3 DOCUMENT HISTORY - BUILDING FLTK SAMPLE WITH ANDROID STUDIO 3 -============================================ +BUILDING FLTK SAMPLE WITH ANDROID STUDIO 3 +------------------------------------------ There is no need to ever write a single line of Java. @@ -32,19 +33,27 @@ device, you are ready to install FLTK. - click "run"; the project should compile and run out of the box - Limitation of FLTK on Android -=============================== +Extensions and limitation of FLTK on Android +-------------------------------------------- Android support for FLTK is in a very early stage. As of March 2018, very basic -rendering work and mouse clicks are detected. +rendering works, text rendering work, clipping works, window layering works, +and mouse clicks (touch events) are detected. + +When loading fonts: + - font names starting with a $ will have the system font path inserted + - font names starting with an @ will be loaded via the Asset Manager + - all other names will be used verbatim -- the screen size is currently always 600x800 and is scaled up -- there is no support for multiple windows (yet) +Limitations: + - the screen size is currently fixed to 600x800 and is scaled up + - many many big and little functions are not yet implemented - DOCUMENT HISTORY -================== +DOCUMENT HISTORY +---------------- +Mar 17 2018 - matt: added Android extensions for fonts Mar 12 2018 - matt: started list of limitation that serevs as information to the user as much as a todo list for core developers Mar 6 2018 - matt: moved project to ide/AndroidStudio3/ -- cgit v1.2.3