Skip to content

How to load fonts embedded by lime build? #14

@greysondn

Description

@greysondn

Specifically for a Label.

I've tried quite the number of things:

  • Setting font-family in a css file for the XML I'm loading

  • Setting a style with path to the font face, relative, trying several different times

  • Reaching into the label's dirty underside and setting the computed style's font to the path to the font

The font is on my asset path; it's actually the TTF for Hack. I know it's embedding properly; other parts of the project waiting for me to migrate their UI library are using it.

Little help, please?

Haxelib state in case any of them matter.

C:\windows\system32>haxelib list
flixel-addons: 2.7.1 [2.7.3]
flixel-demos: 2.6.1 [2.7.0]
flixel-templates: 2.5.3 [2.5.4]
flixel-tools: 1.4.2 [1.4.3]
flixel-ui: 2.3.1 [2.3.2]
flixel: 4.5.1 [4.6.0]
flxscrollablearea: [0.4.0]
haxeui-core: [0.0.3] 0.0.4
haxeui-flixel: [0.0.0]
haxeui-openfl: [0.0.2]
hscript: [2.3.0]
hxcpp-debug-server: [dev:c:\Users\Dorian Greyson\.vscode\extensions\vshaxe.hxcpp-debugger-1.2.0\hxcpp-debug-server]
hxcpp: 4.0.4 [4.0.8]
lime-samples: [7.0.0]
lime: 7.2.0 [7.2.1]
openfl: 8.7.0 [8.8.0]
yaml: [1.3.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions