You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer-guide/Theme-Basics.asciidoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -450,7 +450,7 @@ Notice that, in code, only pixel sizes are supported, so it’s up to you to dec
450
450
451
451
The font name is the difficult bit, iOS requires the name of the font in order to load the font. This font name doesn't always correlate to the file name making this task rather "tricky". The actual font name is sometimes viewable within a font viewer. It isn't always intuitive, so be sure to test that on the device to make sure you got it right.
452
452
453
-
IMPORTANT: due to copyright restrictions we cannot distribute Helvetica and thus can't simulate it. In the simulator you will see Roboto and not the device font unless you are running on a Mac
453
+
IMPORTANT: Due to licensing restrictions Codename One doesn't bundle Apple's iOS fonts. In the simulator with an iOS skin we try to use installed San Francisco/SF Pro (or Helvetica Neue) fonts when available on your machine; otherwise we fall back to bundled Roboto. You can obtain Apple's font downloads and terms at https://developer.apple.com/fonts/
454
454
455
455
The code below demonstrates all the major fonts available in Codename One with the handlee ttf file posing as a standin for arbitrary TTF:
Copy file name to clipboardExpand all lines: docs/website/content/faq.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,20 @@ Not if you use the Codename One cloud build service. The cloud handles iOS compi
33
33
34
34
If you build fully offline, Apple tooling still requires macOS for iOS builds and submission workflows.
35
35
36
+
### Do `native:*` fonts in the JavaSE simulator match current iOS fonts?
37
+
They can. The simulator now tries to use installed iOS-family fonts (San Francisco/SF Pro first, then Helvetica Neue) when the app runs with an iOS simulator skin.
38
+
39
+
If those fonts are not installed on the host OS, the simulator falls back to bundled Roboto fonts so behavior remains consistent.
40
+
41
+
### Can Codename One bundle Apple's San Francisco fonts?
42
+
No. Codename One doesn't bundle Apple's proprietary iOS fonts. If you want exact iOS typography in the simulator on Windows/Linux, install the fonts separately under your own Apple license terms. Apple publishes font information and downloads at: https://developer.apple.com/fonts/
43
+
44
+
Practical setup guidance:
45
+
46
+
-**macOS**: You usually already have the required iOS font families installed with the OS/Xcode toolchain.
47
+
-**Windows/Linux**: Install San Francisco/SF Pro fonts from Apple's official distribution channels for licensed developers, then restart the simulator.
48
+
- If those fonts are unavailable, simulator rendering still works using Roboto fallback, but text metrics may differ from real iOS devices.
49
+
36
50
### How does performance compare to native or HTML-based solutions?
37
51
Codename One compiles to native targets and is designed for production-level performance, including optimized rendering and modern VM/runtime improvements.
0 commit comments