Custom fonts not working
casualdevvv opened this issue · comments
Bug Description:
I am encountering issues when attempting to integrate a custom font face. The font displays incorrectly, and the text within the editor has irregular spacing, which look like whitespace characters but is the text inside the editor.
Steps to Reproduce:
- Add the custom font face into the CSS.
- Assign the fontFamily to the options props, for example:
fontFamily: 'Editor'
.
Expected Behavior:
Expecting the editor font to change to the selected custom font.
Desktop Details:
- OS: Windows
- Browser: Chrome
- Version: 126
Editor Snippet
<Editor height="calc(100vh - 8rem)" defaultLanguage="lua" defaultValue='print("Hello, World!")' theme='hw-novo' options={{ fontSize: 18, minimap: { enabled: false }, smoothScrolling: true, cursorBlinking: "smooth", renderLineHighlight: 'all', fontFamily: 'Editor'}}/>
@casualdevvv could you please try this?
@suren-atoyan That did fix the spacing issue
But it still isn't able to use the font, it gets replaced by some weird default font
Here is what the font is supposed to look like
Can you try that font somewhere else in your application? let's see if it's related to monaco
or not.