RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Dynamic Decals - BrowserDynamic Decals - BrushesDynamic Decals - CameraDynamic Decals - Color HistoryDynamic Decals - Color PresetsDynamic Decals - Debug SectionDynamic Decals - Debug TexturesDynamic Decals - Documentation SystemDynamic Decals - ExportDynamic Decals - FontsDynamic Decals - GizmoDynamic Decals - HelperDynamic Decals HistoryDynamic Decals InspectorDynamic Decals Layer StackDynamic Decals Load/SaveDynamic Decals MeshesDynamic Decals NewsDynamic Decals NotificationDynamic Decals SelectionDynamic Decals SettingsDynamic Decals TexturesDynamic Decals Vehicle Color PaletteDynamic Decals Widgets

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE ExtensionseditordynamicDecals

Dynamic Decals - Fonts

Font atlas generation and management for the dynamic decals tool. Rasterizes TTF fonts into atlas textures (with optional SDF), provides glyph browser, preview window, and integrates with the decal sy

Font atlas generation and management for the dynamic decals tool. Rasterizes TTF fonts into atlas textures (with optional SDF), provides glyph browser, preview window, and integrates with the decal system for text-based decals.


Public API

FunctionSignatureDescription
M.checkOrGenerateFontBitmaps(fontPath) → boolGenerates atlas if not already cached; returns false on failure
M.getFontDirectory() → stringReturns font source directory (/ui/common/)
M.getGeneratedFontAtlases() → tableReturns array of generated font atlas names
M.registerEditorPreferences(prefsRegistry)Registers glyph preview sizes and missing glyph marking
M.editorPreferenceValueChanged(path, value)Preference change callback (stub)
M.setup(tool_in)Registers section, browser tab, preview window, sets atlas path

Font Atlas Generation

-- From the Fonts section UI or programmatically:
FontRasterizer.createFontBitmap(
  fontPath,               -- e.g., "/ui/common/MyFont.ttf"
  destinationDirectory,   -- "/art/dynamicDecals/fonts/"
  glyphPixelHeight,       -- default 256
  true,                   -- include monospaced atlas
  generateSdf,            -- SDF toggle
  sdfPadding,             -- default 8
  sdfOnedgeValue,         -- default 128 (0-255)
  sdfPixelDistScale       -- default 8.0
)

Generated Files (per font)

FileContent
<font>/<font>.font.jsonAtlas metadata: header + glyph data
<font>/<font>_monospaced.pngMonospaced atlas texture
<font>/<font>_sdf_monospaced.pngSDF atlas texture (if enabled)

Preview Window

Tabbed preview with:

  • Info: Font name, atlas dimensions, glyph count, SDF params
  • Atlas: Full monospaced atlas image
  • Glyphs: Individual glyph grid (double-click to select as decal texture)
  • Atlas SDF / Glyphs SDF: SDF versions (if generated)

Browser Tab

Displays all generated font atlases with glyph thumbnail grids. Double-clicking a glyph sets it as the current decal font character via:

api.setDecalLayerFontPath(fontPath)
api.setDecalLayerFontCharacter(string.char(key))

Preferences

KeyTypeDefaultDescription
fonts.glyphPreviewSizefloat128Glyph size in section (32–1024)
fonts.glyphPreviewSizeInPreviewWindowfloat128Glyph size in preview window
fonts.markMissingGlyphsbooltrueRed highlight for missing glyphs

Dependencies

ModulePurpose
editor_api_dynamicDecalsFont texture atlas path, decal font API
editor_dynamicDecals_helperimageWidget(), imageTooltip()
editor_dynamicDecals_browserBrowser tab registration
editor_dynamicDecals_notificationGeneration failure notifications
FontRasterizerEngine API for TTF → bitmap conversion

Module Variables

  • supportedFontFileFormats (table) - Supported font file format filters for file dialogs.

Additional Exports

  • M.supportedFontFileFormats

See Also

  • Dynamic Decals - Browser - Related reference
  • Dynamic Decals - Brushes - Related reference
  • Dynamic Decals - Camera - Related reference
  • World Editor Guide - Guide

Dynamic Decals - Export

Export system for the dynamic decals tool. Two export modes: **Export Skin** (generates skin files ready for in-game use) and **Export Textures** (exports raw color, metallic, roughness, and color pal

Dynamic Decals - Gizmo

3D transform gizmo controller for the dynamic decals tool. Manages translate/rotate/scale modes, axis gizmo lifecycle (begin/drag/end), bounding box visualization, and per-mode callback dispatch. The

On this page

Public APIFont Atlas GenerationGenerated Files (per font)Preview WindowBrowser TabPreferencesDependenciesModule VariablesAdditional ExportsSee Also