hBasic Manual |
|||||
Fonts
|
|||||
Font Families
for CONSOLE.SET
"FONT
<number | family>"
e.g CONSOLE.SET "FONT sans-serif.BOLD"
|
|||||
Scaled Text
Some commands such as CONSOLE.SET "TEXTSIZE
<size>" can accept scaled pixel sizes.
These are diffferent to dip (device independent pixels), in that furthur scaling is applied according to the android device user preferences (e.g Display settings of device). These are refered to as scaled pixels (SP). To honour SP sizes, you can set the console text size with a negative size,
If the user has enlarged the fonts in the device
systems settings, then the font will appear larger than
the equivalent size of 16dp.
To get the perceived scaled pixel density, you can use e.g density_SP returns 320 on a 160 dpi display with a user preference scale of 2X in settings. |
|||||