Sublime Forum

Custom font

#1

Does anyone know if there’s any way to bundle a custom font in a package and use it only for certain views?

I was hoping for something like this, but it doesn’t work…

<span class="syntaxdefault"><br /></span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">    </span><span class="syntaxstring">"font_face"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> </span><span class="syntaxstring">"Packages/MyPlugin/fonts/MyCustomFont.ttf"<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault"> </span>

Thanks!

0 Likes

#2

From what I remember when I had looked at this, the only fonts you can use via the “font_face” setting are the ones available to the OS.

0 Likes