SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

adding text in wine (by Ed Stone)
I am running Solvespace 2.0 in Ubuntu 12.04 LTS with WINE (with latest updates) and cannot add text to a drawing. I get the block with crossed lines, but cannot type in any characters. It works OK in windows though.
Fri Jan 10 2014, 09:35:10
(no subject) (by Jonathan Westhues)
Are there .ttf font files in your %WINDIR%/fonts/? The Win32 APIs, as implemented by Windows or by WINE, provide only for rasterized versions of those fonts; so SolveSpace needs to open the actual font files to get the vector outlines.
Fri Jan 10 2014, 15:08:19
adding text in wine (by Ed Stone)
I do not find a file %WINDIR%/fonts/ on my system. There are .ttf font files in the /Home/.wine/drive_c/windows/fonts file. In the ~./.wine/userdef.reg file it says "Fonts"="C:\\windows\\Fonts". Am I missing something?
Sat Jan 11 2014, 13:47:05
(no subject) (by Jonathan Westhues)
That seems superficially like it should work, at least. I assume that you don't see a list of fonts in the browser window when you select a "Text in a TrueType Font" entity?

SolveSpace finds the fonts in LoadAllFontFiles(), around line 879 of w32main.cpp. You could run strace or equivalent to see where WINE is looking, I guess.
Sat Jan 11 2014, 17:19:38
adding text in wine (by Ed Stone)
Found it. Before I didn't have any fonts available and didn't look for them in the browser window.

Thanks
Sat Jan 11 2014, 23:43:46
(no subject) (by Jonathan Westhues)
I guess you have fonts in that directory, but not Arial (which SolveSpace defaults to)? You could probably get that or an equivalent, per

https://wiki.archlinux.org/index.php/MS_Fonts

It would make more sense for SolveSpace to always default to an available font, of course.
Mon Jan 13 2014, 00:22:52
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2018 SolveSpace contributors. Most recent update Nov 22 2018.