One font has changed

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
yosi666
Newbie
Newbie
Posts: 4
Joined: Wed Jul 06, 2011 2:27 pm

One font has changed

Post by yosi666 »

Hi everybody!
This is my first post here, so I would like to thank everybody that helps in this wonderful and useful project
I've been using wine a while and didn't have any problem, at least not one that couldn't be solved with a little of research in the internet
But recently one of the fonts the program uses has changed and haven't figured out how to change it back.
I use wine 1.1.39 in my puppy linux. I also have win xp in the same machine so the fonts of windows are linked in my linux system. Everything was working till I changed the value of the size font changing this value:
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts]
"LogPixels"=dword:00000052 (instead of 60).
After that wine uses a very weird font (that I use in design jobs) to show the programs which is quite unconfortable. I've tried to find out how to change it back without reinstalling wine but haven't successed yet.
Could anyone give me a hand with this?
Thanks a lot!
yosi666
Newbie
Newbie
Posts: 4
Joined: Wed Jul 06, 2011 2:27 pm

Still trying

Post by yosi666 »

Well, I've tried a couple of things but wihout success. I've copied the fonts I wont wine to use in the root/.wine/drive_c/windows/fonts directory but still uses the same font.
Is there any way that I can tell wine to use this fonts instead of the ones that puppy uses (that are in my win xp hard disk)?
I don't know how to edit the registry or change the wine config files to do so. Could anyone tell me how to do it or any good manual?
Thanks!
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

One font has changed

Post by jjmckenzie »

On Fri, Jul 8, 2011 at 7:15 AM, yosi666 <[email protected]> wrote:
Well, I've tried a couple of things but wihout success. I've copied the fonts I wont wine to use in the
root/.wine/drive_c/windows/fonts
There is one of your problems. DO NOT RUN WINE AS ROOT. See the FAQ
for several reasons why you should not.

Suggestion: Try running Wine as a regular user and see if this
problem goes away.

Since Wine uses fontconfig to determine which fonts you have
installed, it might be a good idea to become familar with how that
program functions.

James
yosi666
Newbie
Newbie
Posts: 4
Joined: Wed Jul 06, 2011 2:27 pm

Post by yosi666 »

Hi James
Thanks for your answer! I think the puppy linux distro only runs as root and this is the way I've always used it (also wine) with no major problems.
The point is that this program used to work fine but now changes some fonts within the program. It happens in Sigil and in Calibre, both ebook editing programs (if this might help).
Is there any chance that I tell wine which fonts use through the fontconfig file? Well, I'm not an expert user so I'm quite lost with it
Anyways thanks again for the suggestion
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Post by SpawnHappyJake »

You can't undo it the same way you did it? Have you tried "wine regedit" from terminal and trying to put it back with the GUI WINE registry editor?
You have an old WINE, and you should probably update it, but that's a separate thing.
If it gets really bad, you can save what you want to keep, delete the .wine folder from your home folder, make a new .wine folder, and let WINE repopulate it from scratch.

Cheers,
Jake
yosi666
Newbie
Newbie
Posts: 4
Joined: Wed Jul 06, 2011 2:27 pm

Worked!

Post by yosi666 »

Thanks Jake. Deleting the .wine folder worked! Reopened the program and fonts were fine again. Don't understand why, but I guess I should have changed something that I should not :oops:
But nice trick though if things get really bad and I want my wine back :D
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Post by SpawnHappyJake »

Don't be embarrassed. The reason why it worked it because you nuked it and had it reset to normal. It's a classic technique that fixes so many computer-related things.

Cheers,
Jake
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

One font has changed

Post by jjmckenzie »

On 7/8/11 4:41 PM, SpawnHappyJake wrote:
Don't be embarrassed. The reason why it worked it because you nuked it and had it reset to normal. It's a classic technique that fixes so many computer-related things.
It is also functionally equivalent to re-installing Windows, but without
the three day waiting period :)

The method that I used to use is:

Code: Select all

mv .wine,{.backup[1,2,3...]}
wine notepad
The 1,2,3... is backups in sequence.

Example:
mv .wine,{.backup1}
for the first attempt
mv .wine,{.backup2]
for the second.

Hope this helps in the future.

James
Locked