renew-js / renew-lib

Core component of renew-js for displaying and modifying drawings
Other
0 stars 0 forks source link

Support SVG font outside the browser environment #115

Open tim-kilian opened 5 years ago

tim-kilian commented 5 years ago

Problem

114 will fix that the fonts will work in a browser environment, but it wont outside. So to make it work outside, we have to translate the fonts into shapes. Maybe there is a library that do this for us.

Originally posted by @tim-kilian in https://github.com/renew-js/renew-lib/issues/103#issuecomment-489253288

tim-kilian commented 5 years ago

After installing the font itself on my environment it seems to work.

0x4d commented 5 years ago

Most editors that are not browsers will ignore the @import which I think is a good thing. They should however all fall back to the sans-serif declaration? Maybe we should use the web font only for the UI and only system fonts inside the SVG?