GE Lua Documentation

Press F to search!

createFontBitmap

Definition


-- @/=[C]:-1
function createFontBitmap(...)

Callers

@/lua/ge/extensions/editor/dynamicDecals/fonts.lua

local function createFontBitmap(path)
  path = path or fontPath
  path = path or fontPath
  local res = FontRasterizer.createFontBitmap(path, destinationDirectory, glyphPixelHeight, true, generateSdf, sdfPadding, sdfOnedgeValue, sdfPixelDistScale)
  if res == true then
  if im.Button("Generate Font Atlas") then
    createFontBitmap()
  end
      -- return false when craetion failed
      return createFontBitmap(fontPath)
    else