Discussion:
[Wine] Centos + Wine + Ms Sans Serif.
essemesmo
2011-02-11 13:32:09 UTC
Permalink
Hi to all, i'm trying run a app on wine installed on Centos 5.4 I386, its call DCTF 1.8, Its a Brazilian government program.

The install it's ok, no problem but when i go run the App, its tell me i need the Ms Sans Serif Install, and install the 'Font' from 'Control Painel'.

I try copy the file mssans.ttf to the c:/windows/fonts or the files .fon,
Already try to install the msfonts or liberation. but alway i stop on this mensage.

I already run this program on Madriva 2010.1 x64.

Anybody can send a Light here.

Thx!
DaVince
2011-02-11 14:03:27 UTC
Permalink
Wine searches for fonts in /usr/share/fonts, I believe. Try putting the TTF there instead. Make sure the font actually appears in Linux native software first to have a guarantee that Wine should be able to detect it.
James Mckenzie
2011-02-11 14:15:08 UTC
Permalink
Sent: Feb 11, 2011 7:03 AM
Subject: [Wine] Re: Centos + Wine + Ms Sans Serif.
Wine searches for fonts in /usr/share/fonts, I believe. Try putting the TTF there instead. Make sure the font actually
appears in Linux native software first to have a guarantee that Wine should be able to detect it.
Wine should search the directory where fontconfig/fontforge is looking for them. It should be what you stated as the default, Davince, but on my Mac it is a sub-directory of X11.

This is changed or set using an environment variable for FontConfig. Using the set or env command look for a line like FONTCONFIG to detect if fonts should be in a different directory. Also, fonts for Wine should be in the drive_c/windows/fonts directory, if I remember the layout of the Wine directory structure correctly.

James McKenzie
essemesmo
2011-02-11 17:11:12 UTC
Permalink
Post by DaVince
Wine searches for fonts in /usr/share/fonts, I believe. Try putting the TTF there instead. Make sure the font actually appears in Linux native software first to have a guarantee that Wine should be able to detect it.
I put the .ttf on the /usr/share/fonts/msfonts. And they appears in Linux Native Software. But still the same problem.


I look at the regedit and on fonts i got thes value
MS Sans Serif REG_SZ Z:\usr\share\fonts\msfonts\micross.ttf
MS Serif REG_SZ Z:\usr\share\fonts\msfonts\micross.ttf

And on Fonts Substitutes i got this

MS Sans Serif Liberation Serif


Some clue?
dimesio
2011-02-11 17:30:09 UTC
Permalink
Post by essemesmo
I put the .ttf on the /usr/share/fonts/msfonts. And they appears in Linux Native Software. But still the same problem.
I look at the regedit and on fonts i got thes value
MS Sans Serif REG_SZ Z:\usr\share\fonts\msfonts\micross.ttf
MS Serif REG_SZ Z:\usr\share\fonts\msfonts\micross.ttf
Your original post said the file was named mssans.ttf. Change the registry key to match it.
essemesmo
2011-02-11 17:52:50 UTC
Permalink
Post by dimesio
Post by essemesmo
I put the .ttf on the /usr/share/fonts/msfonts. And they appears in Linux Native Software. But still the same problem.
I look at the regedit and on fonts i got thes value
MS Sans Serif REG_SZ Z:\usr\share\fonts\msfonts\micross.ttf
MS Serif REG_SZ Z:\usr\share\fonts\msfonts\micross.ttf
Your original post said the file was named mssans.ttf. Change the registry key to match it.
Sorry my first Post its wrong the name is micross.ttf.

On Windows, i got this tree files, micross.ttf, sserife.fon and serife.fon

So the reg is ok. Only my first post was wrong.
essemesmo
2011-02-11 18:17:58 UTC
Permalink
Hi to all, after 2 days, i figure it out.

The problem was on reg.

Go to HKEY_LOCAL_MACHINE --> Software --> Microsoft --> Windows NT --> CurrentVersion --> Fonts.

On Value "MS Sans Serif" put the value 'sserife.fon'
whitout quotes!

And all be Ok!

The file sserife.fon must be on the folder /usr/share/wine/fonts.

This file can be found on msttcorefonts package or on Windows Instalation

After all that the software run! ;)

Thx for all to try to help. And Help! :D

P.S. I do the same adjust on my Fedora 14 x64 and work!

So the resolution it's not only for Centos, fedora works to! :)

Loading...