Here is an example code to get the size of your font on Android
Example Codes:
procedure TForm10.Button1Click(Sender: TObject); var Configuration: JConfiguration; CurrentNightMode: Integer; begin Configuration := TAndroidHelper.Context.GetResources.getConfiguration; Text1.Text:=Configuration.fontScale.ToString; end;
1
|
uses Androidapi . JNI . GraphicsContentViewText, Androidapi . Helpers |
Read More:
- File class details (get the file name, size, path, create, etc.)
- C#: How to Get details of the directory where the currently running program is located
- Android: How to Add Background Music for Activity with Service
- Electron: How to Use BrowserWindow to Create a Window
- Canvas: How to Implement Video Screenshot Function
- Python: How to Create List by Comprehension (Example Codes)
- Windows Core Audio APIs: How to Progress Loopback Recording and Generate WAV File
- Docker: How to build a rabbitmq image cluster
- How to Use Printf in HAL Library
- torch.max Example (How to Use)
- MySQL Batch Add Data and Store Example
- Jquery use queue to implement Ajax request queue Simple Example
- Websocket Front-end Call Example
- Matplotlib Draw 3D scatter Diagram Example
- Echarts-for-React Example (Install, Import and Effect)
- WCNSS_qcom_cfg.ini WIFI Configuration File Guide
- Hutool Excel Import & Export Example
- Base64 Image Compression Example
- Open CASCADE Technology 7.7.0 released
- MAFIA: 1- OpenFlow statistics (Counters, Timestamps)(mafia-sdn/p4demos/demos/1-openflow/1.1-statistics/p4src/of.p4)