B4i Question FontToBitmap looks blurry - Alexander Stolte (first post)    Jul 22, 2020   (1 reaction) set the font size to 40, but the text is not made for this view... B4i Question Adjust Font Size when use DrawTextRotated - Erel (first post)    Sep 18, 2016   (1 reaction) You can find the maximum font size with this code:
Sub MaxFontToFitWidth(text As String, width As Int) As Font
Dim f As Font
For i = 5 To 50
f = Font.CreateNew(i)
If text.MeasureWidth(f) > width Then
Exit
End If
Next
Return f
End Sub B4i Question The Htlm display differs between Android and iOS. - TILogistic (first post)    Aug 01, 2024   (1 reaction) test:
Change:
<!DOCTYPE html>
<html style="font-size: 16px">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>History_en</title>
</head>
use Style
https://www.w3school B4i Question Change Button text size by code - Andrew (Digitwell) (first post)    Sep 11, 2018   (1 reaction) In iOS the Font size is a part of the Font Object so you would normally do something like. btn.CustomLabel.Font = Font.CreateNew2("<FontName>",<FontSize>) or btn.CustomLabel.Font = Font.CreateFontAwesome(<FontSize>) You can store the Font in a global variable and re-use if you prefer. B4i Question Set TextView Font Size With CSBuilder - William Lancee (first post)    Mar 03, 2024 There are csbuilder tutorials for:
Android: https://www.b4x.-csbuilder-tutorial.76226/
B4i: https://www.b4x.-attributedstrings-builder.79153/
The .Size(30) tag works in Android. But I don't know about B4i. The above tutorial uses this to change font size.
Font(Font.CreateNew(30)) Wish Application demo layouts - William Lancee (first post)    Jan 16, 2022   (1 reaction) I have been experimenting with 'adaptive' layouts and font sizes with B4XPages. That is, 'adaptive' to screen sizes. It is more complicated than just scaling. B4Xpages invites thinking about a page (= a class) as a functional layout. So one could have pages like you suggest. So far, I have manag B4i Question Label text alignment and max font size? - Arf    Sep 22, 2016 I've got a label which fills the whole screen, text alignment set to centre, and font size is 200 - the biggest the designer will allow.
The text appears below centre, and I want it larger - to fill the space as much as possible. Thought I could make it 400 or something and let the 'fit text' setti B4i Question Is it possible to get and set TextFields font size ? - klaus (first post)    Jan 01, 2021   (2 reactions) TextField.Font.Size is read only.
You need to create a new font with either Font.CreateNew(MyTextSize), default font, or Font.CreateNew2(MyFontName, MyTextSize).
Or use the iXUI library and define the TextField as a B4XView and set TextFied.TextSize = MyTextSize B4i Question The custom Font in WebView1 does not work - Semen Matusovskiy (first post)    Aug 08, 2021   (1 reaction) I placed UthmanTN1Ver10.otf into Special subfolder and added #AppFont : UthmanTN1Ver10.otf
In Application_Start I did Log (Font.CreateNew2 ("KFGQPC Uthman Taha Naskh", 20dip)).
Result: <B4IFontWrapper: <UICTFont: 0x7fd768641970> font-family: "KFGQPC Uthman Taha Naskh"; font-weight: normal; font-s B4i Question TextView AttributedText Font Size Problem - Jim McDougal    Mar 06, 2024 Dim StrPtr As Int ' Tracking pointer to individual characters in StringA
Dim Chart As String ' Character holder for cs build
Dim ColorChange As Boolean ' Color on/off
Dim BoldChange As Boolean ' Underline on/off
Dim SizeUp A Page: 1   2   3   4   5   6   7   Powered by ColBERT |