B4X Store
jdashboardUI / Core & Utilities / JIconFont
Core & Utilities

JIconFont

Access to FontAwesome Solid/Regular, Material Design, Bootstrap and IcoMoon.

Search all jdashboardUI docs
Source
jdashboardUI.b4xlib · Public API only
Store language: en

JDashboardUI · Complete API guide · B4J/JavaFX · October 30, 2026 source bundle

Icon font helper for FontAwesome Solid, FontAwesome Regular, Material Design Icons, Bootstrap Icons and IcoMoon.

Illustrative component mockup for JIconFont

Illustrative documentation mockup, not an exact control screenshot.

What it does and when to use it

Icon font helper for FontAwesome Solid, FontAwesome Regular, Material Design Icons, Bootstrap Icons and IcoMoon.

Initialization and practical examples

The example demonstrates the available operations. Root, where used, refers to an existing B4XView. Example image files must actually be included in the project's Files folder.

' Initialize once. TTF font files are bundled in jdashboardUI.
Private Fonts As JIconFont
Fonts.Initialize
Fonts.FontSize = 22

' Choose a font family that contains your glyph.
Dim SolidFont As B4XFont = Fonts.IconFontAwesomeSolid
Dim RegularFont As B4XFont = Fonts.IconFontAwesomeRegular
Dim MaterialFont As B4XFont = Fonts.IconMaterialFont
Dim BootstrapIcons As B4XFont = Fonts.BootstrapFont
Dim IcoMoonIcons As B4XFont = Fonts.IconMoonFont

' Example: use the solid font for a checked-state glyph.
JCheckBox1.SetIcon(Chr(0xF00C), SolidFont)

Complete public API reference

This module exposes 7 public methods/accessors in the inspected version. All declarations, including variants, getters/setters and Designer lifecycle hooks, appear below.

Exact source declaration Purpose
Initialize Initializes the instance and, when required, binds Callback and EventName.
getIconMaterialFont As B4XFont Reads the IconMaterialFont property.
getIconFontAwesomeRegular As B4XFont Reads the IconFontAwesomeRegular property.
getIconFontAwesomeSolid As B4XFont Reads the IconFontAwesomeSolid property.
getIconMoonFont As B4XFont Reads the IconMoonFont property.
getBootstrapFont As B4XFont Reads the BootstrapFont property.
setFontSize(Size As Double) Configures FontSize; single-argument setters commonly use B4X property syntax.

B4X properties: read/write access

Public getX/setX members correspond to standard B4X Control.X property syntax when their signatures are property-compatible. Use multi-argument members as methods.

Property Access
IconMaterialFont read
IconFontAwesomeRegular read
IconFontAwesomeSolid read
IconMoonFont read
BootstrapFont read
FontSize write

Public fields

No additional public instance fields are declared.

Designer properties

This module declares no custom Designer properties.

Events

This module declares no custom public events.

Lifecycle, compatibility and limitations

The TTF assets are bundled with the library. The Icon Choose sample provides glyph search, preview, color selection and copyable Chr(0x...) codes.

DesignerCreateView and Base_Resize, where listed, are Custom View lifecycle hooks managed by B4J. Normally you should not call them manually. When adding the view through the Designer, do not initialize the same instance again.

Icon Choose: the sample bundled with JDashboardUI allows searching and previewing glyphs, selecting colors, and copying Chr(0x...) and B4X color values. TTF assets are bundled in the library.

API conventions

  • All signatures and argument types come from the inspected source bundle.
  • B4XView denotes an XUI view, B4XFont an XUI font, and Object an arbitrary value.
  • Variable names in samples are illustrative: use those from your actual project.
  • Source review was performed; no real B4J compilation was performed in this environment.