ijprest / keyboard-layout-editor

Web application to enable the design & editing of keyboard layouts
http://www.keyboard-layout-editor.com/
Other
1.3k stars 241 forks source link

Is it possible to use fonts on my computer? #241

Closed alessiocpt closed 6 years ago

alessiocpt commented 6 years ago

I'm trying to edit the CSS in the tab custom styles in order to use a particular font I have installed on my machine but it does not seem to work. Is it possible? How can I do it?

ijprest commented 6 years ago

If the font is installed on your system and available to the browser, it should be as easy as this:

.keylabel0, .keylabel1, .keylabel2, 
.keylabel3, .keylabel4, .keylabel5, 
.keylabel6, .keylabel7, .keylabel8, 
.keylabel9, .keylabel10, .keylabel11 { 
   font-family: 'Bernard MT Condensed';
}

(Note, specifying all the .keylabelXX classes like this is currently preferred to using * due to #143.)

alessiocpt commented 6 years ago

You are right. I was misspelling the font. Thanks!