问题
I try to use a kind of Chinese fonts HGDH_CNKI.TTF
. I put it into sbid/Assets/Fonts/
(my project name is sbid).
And then I try it like this, I use:
<Button Command="{Binding AddProtocol}" FontFamily="/Assets/Fonts/HGDH_CNKI.TTF#HGDH_CNKI">新协议</Button>
or
<Button Command="{Binding AddProtocol}" FontFamily="avares://sbid/Assets/Fonts/HGDH_CNKI.TTF#HGDH_CNKI">新协议</Button>
It still doesn't work. Is there any other steps I need to do?
来源:https://stackoverflow.com/questions/62816456/how-to-include-external-font-in-avalonia-application-without-installing-it