Skip to content

How to use a font that is an Avalonia resource? #56

@bmscodespace

Description

@bmscodespace

Hi,

thank you all for the HtmlRenderer project. Is there a way to use as "font-family" a font that is registered in the Avalonia resources? F.e. I have added "Work Sans" to my resources and now want to do something like

<Style Selector="html|HtmlLabel">
            <Setter Property="BaseStylesheet" Value="* { font-family: 'Work Sans'; src: url(???)}" />
</Style>

where I at the moment don't know what to write in place of "???".
Thank you very much for any help ;)

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