You are not logged in.

#1 2014-02-11 08:20:23

narcin
Member
Registered: 2010-01-23
Posts: 24

Fonts Wine Office Problem [SOLVED]

Few months ago I've installed Fonts  - Infinality from Wiki

Everything works fine except Wine fonts in Wine - www.vita-dent.pl/screenshot.jpg

Could you help me ?

I have also Windows on other partition.

Please help.


Kind Regards,

Marcin.

Last edited by narcin (2014-02-16 17:27:16)

Offline

#2 2014-02-11 11:26:12

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Fonts Wine Office Problem [SOLVED]

Can you not use Libre Office or Open Office :S? Why do you want to use MS office through wine? Just building a rod for your own back

Offline

#3 2014-02-11 11:38:03

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Fonts Wine Office Problem [SOLVED]

That's a bitmap font. This will help to zero in on which font it is, so you can tell fontconfig to use a better font:

lsof | grep fonts

Edit: I'd recommend using lout or texlive, instead of Word wink

Last edited by brebs (2014-02-11 11:53:19)

Offline

#4 2014-02-11 12:54:14

narcin
Member
Registered: 2010-01-23
Posts: 24

Re: Fonts Wine Office Problem [SOLVED]

Kartious wrote:

Can you not use Libre Office or Open Office :S?

I've tried last 6 months, but I'm doing treatment plans with lot of tables and images. MS Word is much faster for me, because tables and image positioning is much faster / easier than Libre and Open Office.

brebs wrote:

you can tell fontconfig to use a better font

how to do it ?

this is effect of

lsof | grep fonts

http://wklej.org/id/1269627/

I couldn't find "wine" or something like "wine" on that list.


brebs wrote:

I'd recommend using lout or texlive, instead of Word

I'm afraid, that my documents has to be in *.doc format. I'm using Blender instead 3dMax, Gimp instead Photoshop, but I really need Word, which makes my job more effective.

Thanks for your help.

Kind Regards,

Marcin.

Offline

#5 2014-02-11 13:36:02

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Fonts Wine Office Problem [SOLVED]

From old thread, I'm wondering what you get for these:

$ fc-match calibri
calibri.ttf: "Calibri" "Regular"

$ fc-match cambria
cambria.ttc: "Cambria" "Regular"

You probably want bohoomil's font collection. See also his fontconfig rules. And there's also mine.

Last edited by brebs (2014-02-11 13:37:25)

Offline

#6 2014-02-11 13:59:36

narcin
Member
Registered: 2010-01-23
Posts: 24

Re: Fonts Wine Office Problem [SOLVED]

[marcin@marcin ~]$ fc-match calibri
calibri.ttf: "Carlito" "Regular"
[marcin@marcin ~]$ fc-match cambria
cambria.ttf: "Caladea" "Regular"

I've installed "Infinality-bundle" but I'm not sure how to configure it properly. Two days ago when I've made some changes in /etc/fonts/fonts.conf I had only squares instead letters so it was really difficult for me to restore original fonts.conf - that's why I'm asking.


Kind Regards,

Marcin.

Offline

#7 2014-02-11 14:10:24

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Fonts Wine Office Problem [SOLVED]

It would be best to know what string fontconfig is being told to match a font to. So do a bit of googling as to how to use FC_DEBUG, e.g.:

FC_DEBUG=4 wine msword.exe > /tmp/fonts.txt

After that, just take a look at my fontconfig, e.g.:

    <!-- Prevent Gnome from using embedded bitmaps in fonts like Calibri -->
    <match target="font">
        <edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit>
    </match>

    <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
    <selectfont><rejectfont><pattern>
        <patelt name="scalable"><bool>false</bool></patelt>
    </pattern></rejectfont></selectfont>

    <!-- Substitute truetype fonts for bitmap ones -->
    <match target="font">
        <edit name="prefer_outline"><bool>true</bool></edit>
    </match>

Last edited by brebs (2014-02-11 14:17:18)

Offline

#8 2014-02-13 22:35:23

narcin
Member
Registered: 2010-01-23
Posts: 24

Re: Fonts Wine Office Problem [SOLVED]

I've added your lines of configuration to my font.conf in /etc/font/ but nothing happened

after $ FC_DEBUG=4 WINEPREFIX="/home/marcin/win32" wine WINWORD.EXE > /home/marcin/fonts.txt

I have - http://gdula.pl/fonts.txt - but no idea what should I change to have nice fonts.


Kind Regards,

Marcin.

Offline

#9 2014-02-13 22:45:02

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Fonts Wine Office Problem [SOLVED]

Wrong file. Edit /etc/fonts/local.conf - see example in my sig.

Edit: Sorry, that FC_DEBUG=4 test seems to have been useless.

Another thing to try: Remove the bitmap fonts from wine, e.g.:

cd /usr/share/wine
mv fonts bak-fonts

And also strace, to see which font-related files are being used, e.g.:

strace -r -e open wine winword 2>&1 | grep -i fon > /tmp/fonts.txt

Edit: Fixed the executable filename to "winword".

Last edited by brebs (2014-02-16 13:39:42)

Offline

#10 2014-02-16 13:15:54

narcin
Member
Registered: 2010-01-23
Posts: 24

Re: Fonts Wine Office Problem [SOLVED]

1. I don't have /etc/fonts/local.conf - I've created new empty file and paste there your configuration from your link in footer. - nothing change
2.

cd /usr/share/wine
mv fonts bak-fonts

- nothing change
3.

strace -r -e open wine qw 2>&1 | grep -i fon > /tmp/fonts.txt

- fonts.txt is empty

I've red those posts, but I'm afraid my knowledge isn't enough:
http://forums.gentoo.org/viewtopic-p-72 … ml#7273876
https://bbs.archlinux.org/viewtopic.php?id=162098&p=1
https://bbs.archlinux.org/viewtopic.php?id=170976

Kind Regards,

Marcin.

Offline

#11 2014-02-16 13:39:01

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Fonts Wine Office Problem [SOLVED]

Use wine winword instead of wine qw wink

Offline

#12 2014-02-16 13:54:12

narcin
Member
Registered: 2010-01-23
Posts: 24

Re: Fonts Wine Office Problem [SOLVED]

this is what I'm using:

strace -r -e open WINEPREFIX="/home/marcin/win32" wine WINWORD.EXE 2>&1 | grep -i fon > /home/marcin/fonts.txt

WINEPREFIX because I have x64 and ms office is working as x32.

fonts.txt is still empty

I've also tried

strace -r -e open wine WINWORD.EXE 2>&1 | grep -i fon > /home/marcin/fonts.txt

fonts.txt also empty

should WINWORD open after strace ? because it doesn't.

Last edited by narcin (2014-02-16 14:12:37)

Offline

#13 2014-02-16 14:12:26

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Fonts Wine Office Problem [SOLVED]

It's simplest to export WINEPREFIX first, e.g.:

export WINEPREFIX=$HOME/win32
strace -r -e open wine WINWORD.EXE 2>&1 | grep -i fon > $HOME/fonts.txt

Offline

#14 2014-02-16 14:15:35

narcin
Member
Registered: 2010-01-23
Posts: 24

Re: Fonts Wine Office Problem [SOLVED]

fonts.txt - still empty

Offline

#15 2014-02-16 15:08:04

Neburski
Member
Registered: 2009-09-15
Posts: 118

Re: Fonts Wine Office Problem [SOLVED]

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

Read the wiki regarding fonts.

Also "WINEPREFIX=$HOME/win32" doesn't give you a 32 bit wine environment, it's merely a different wine prefix (i.e. it's not ~/.wine)
"WINEARCH=wine32" is what will get you a 32bit wine environment. Again read the wiki if you don't believe me.

Offline

#16 2014-02-16 17:26:56

narcin
Member
Registered: 2010-01-23
Posts: 24

Re: Fonts Wine Office Problem [SOLVED]

Very thank you - I've used before wiki guide, but now, I can see that my entry in registry was bad. I've new one by copy:

[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"ClientSideWithRender"="N"

to file reg.reg and then I've imported it from regedit, before I've made it manually.


Thank you Neburski for your help
Thank you brebs for your patience and help.

Kind Regards,

Marcin.

P.S.

without

WINEPREFIX=$HOME/win32 my office doesn't work

after

export WINEPREFIX=$HOME/win32

I don't need to use prefix and it works.
Sorry for disinformation about x64 and x32.

Offline

Board footer

Powered by FluxBB