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.
(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.
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?
(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.
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.
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
Thanks
(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.
https://wiki.archlinux.org/index.php/MS_Fonts
It would make more sense for SolveSpace to always default to an available font, of course.
Post a reply to this comment: