why does wine priorize the font folder /opt/wine-staging/share/wine/fonts/ ?

Questions about Wine on Linux
Locked
Opako
Level 3
Level 3
Posts: 80
Joined: Mon Jun 08, 2020 9:23 am

why does wine priorize the font folder /opt/wine-staging/share/wine/fonts/ ?

Post by Opako »

Hello,

I use MS Word 2010 in Wine and
I have the font Arial in the following folders:

Code: Select all

~/.local/share/wineprefixes/Microsoft_2010/drive_c/windows/Fonts/
/opt/wine-staging/share/wine/fonts/
/usr/share/fonts/
Now I have noticed that Office 2010 prefers the fonts from ...

Code: Select all

/opt/wine-staging/share/wine/fonts/
(prioritize this folder if a font occurs in all 3 folders)

My expectation was that ...

Code: Select all

~/.local/share/wineprefixes/Microsoft_2010/drive_c/windows/Fonts/ 
... would be prioritized because the fonts in this folder are most specific to a particular prefix.

Why does Wine prioritize the fonts in ...

Code: Select all

/opt/wine-staging/share/wine/fonts/
... and not those in ...

Code: Select all

~/.local/share/wineprefixes/Microsoft_2010/drive_c/windows/Fonts/ 
?

Why does this prioritization make more sense?


Very interested in this. Thank you.
Opako
Level 3
Level 3
Posts: 80
Joined: Mon Jun 08, 2020 9:23 am

Re: why does wine priorize the font folder /opt/wine-staging/share/wine/fonts/ ?

Post by Opako »

I found, that in the registry in ...
HCU/Software/Wine/Fonts/External Fonts
... most fonts have a path, that leeds to the fonts, that are on the system.
But some leed to
... \opt\wine-staging\share\wine\fonts\

For example "Arial" leeds to
Z:\opt\wine-staging\share\wine\fonts\arial.ttf

Question:
Is this the reason, why Wine does absolutely prioritize the font version of "Arial" from
/opt/wine-staging/share/wine/fonts/
?

I have tried to change the path in the registry key...
HCU/Software/Wine/Fonts/External Fonts
.... from ...
Z:\opt\wine-staging\share\wine\fonts\arial.ttf
...to ...
Z:\usr\share\fonts\truetype\msttcorefonts\arial.ttf

But as soon as I try to assign the font "Arial" to some characters in Word, then automatically the path is set back to ...
Z:\opt\wine-staging\share\wine\fonts\arial.ttf

Questions:
1)
Why is the path for Arial set to
Z:\opt\wine-staging\share\wine\fonts\arial.ttf
in the registry
HCU/Software/Wine/Fonts/External Fonts
?

2)
Why can't I change this permanent manually?

Thank you.
Locked