-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG export / font name / provide a ttf #61
Comments
Hi, as I ran into the same problem, I found a workaround (that does not quite address your use case with inkscape) Convert the font as you did (well, I used the
|
I confirm that it needs to be in something else than
Note here: it seems that I needed the config file to be prefixed by a number to be honored: % cd ~/.config/fontconfig/conf.d
% ls
virgil.conf
% sudo -E strace -u $USER -f -e openat fc-match Virgil|& grep virgil.conf
% mv virgil.conf 01-virgil.conf
% sudo -E strace -u $USER -f -e openat fc-match Virgil|& grep virgil.conf
openat(AT_FDCWD, "/home/ux/.config/fontconfig/conf.d/01-virgil.conf", O_RDONLY|O_CLOEXEC) = 5 Also, it's interesting that
The excalidraw SVG contains this: % fc-match "Virgil"
Virgil.ttf: "Virgil 3 YOFF" "Regular"
% fc-match "Virgil, Segoe UI Emoji"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular" If I do uninstall noto emoji though:
And finally here it works for me in Inkscape. Alternatively, removing the Segoe references in the Excalidraw SVG also works. Note that whether you specify To summarize, here is a summary of the multiple issues we have:
|
Same here. There are multiple problems here.
So, it all depends on what one wants to do with the file.
|
For people who want PDFs:
|
Another workaround if you're using a mac: the Chrome print dialog has an "open in Preview" option, from there you can simply crop the PDF. |
Hi there. When I export an SVG image from excalidraw to keep using it on the desktop via Inkscape, I need to install the font. Would it be possible to provide a direct ttf download along the woff2 for desktop use? If I convert with google/woff2, the file is
Virgil.ttf
, but the system (Gnome) installs it with the logical nameVirgil 3 YOFF
, and so it does not match the font families as they appears in the SVG, which are given as"Virgil, Segoe UI Emoji"
. So I think either the SVG should call the fontVirgil 3 YOFF
, or the generated TTF should have the logical nameVirgil
. For now, I find-and-replace the names in the SVG with a text editor...The text was updated successfully, but these errors were encountered: