Bug 1985

Summary: In drakfont: "Get Windows Fonts" button fails
Product: Mageia Reporter: Shlomi Fish <shlomif>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: Normal CC: davidwhodgins, ftg, marja11
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: drakxtools-13.59-1.mga2.src.rpm CVE:
Status comment:

Description Shlomi Fish 2011-07-01 11:47:12 CEST
Description of problem:

After I press the "Get Windows Fonts" button in drakfont, I'm getting this:
"No Fonts Found" and the installation fails.

Steps to Reproduce:
1. su to root.
2. Run drakfont.
3. Press the "Get Windows Fonts" button.
Comment 1 Dave Hodgins 2011-07-01 21:30:44 CEST
Is the windows partition mounted?  If not, then this is a duplicate of
bug 1182.

CC: (none) => davidwhodgins

Comment 2 Shlomi Fish 2011-07-03 12:40:09 CEST
(In reply to comment #1)
> Is the windows partition mounted?  If not, then this is a duplicate of
> bug 1182.

The Windows partition is mounted, but it is an old Windows 98 partition which I trimmed a lot and removed a lot of stuff because I can no longer boot it (so I'm using it as extra storage).

I thought that what this button does is give me the Microsoft True Type Core Fonts:

http://corefonts.sourceforge.net/
Comment 3 Dave Hodgins 2011-07-03 21:50:49 CEST
The badly named "Get Windows Fonts" button is intended to import the
windows fonts from a mounted windows partition on a dual/multi boot system.

The actual code that searches for those fonts in /usr/sbin/drakfont is

    foreach my $fstab_line (grep { /vfat|smbfs|ntfs|fuse/ } cat_('/etc/mtab')) {                                    
        my $win_dir = (split('\s', $fstab_line))[1];                                                                
        foreach my $sys_dir (grep {  /^win(nt|dows)$/i } all($win_dir)) {                                           
            foreach my $font_dir (grep { /^fonts$/i } map { all($_) } "$win_dir/$sys_dir") {                        
                push @fonts, map { "$win_dir/$sys_dir/$font_dir/$_" } all("$win_dir/$sys_dir/$font_dir");

While I can usually figure out what perl code does, I'm no expert in it. :-)
I'm not sure how it handles upper/lower case.

drakfont does import the windows fonts on my system.

I also have a borked 98 install, as well as an xp install, so I'm not sure which
it's actually importing them from, of if it's importing both.

For xp, the fonts are in /media/win_m/WINDOWS/Fonts
For 98, the fonts are in /media/win_c/windows/fonts

If you have /media/win_c/windows/fonts, try renaming to the xp format, and see
if drakfont will then find them.
Comment 4 Frank Griffin 2011-07-04 14:14:50 CEST
Another approach is to manually collect/copy the fonts from various versions of Windows and Office to a central location, and then just "Import" from that location each time.

CC: (none) => ftg

Comment 5 Marja Van Waes 2011-10-23 19:07:21 CEST
@ Shlomi

I thought that button was to get the MS true type core fonts, too :)

Bug 2639 is a package request for those fonts.

Were the fonts still present on your old Win 98 partition, or weren't they?

Keywords: (none) => NEEDINFO
CC: (none) => marja11

Comment 6 Shlomi Fish 2011-10-24 13:09:00 CEST
(In reply to comment #5)
> @ Shlomi
> 
> I thought that button was to get the MS true type core fonts, too :)
> 
> Bug 2639 is a package request for those fonts.
> 
> Were the fonts still present on your old Win 98 partition, or weren't they?

I don't remember, and since then I switched to a different computer with a single Linux-only hard-disk, so it would be hard for me to reproduce it. I think I moved the fonts to a different place, though.

Regards,

-- Shlomi Fish
Comment 7 Marja Van Waes 2011-10-24 15:53:35 CEST
(In reply to comment #6)
> (In reply to comment #5)

> > Were the fonts still present on your old Win 98 partition, or weren't they?
> 
> I don't remember, and since then I switched to a different computer with a
> single Linux-only hard-disk, so it would be hard for me to reproduce it. I
> think I moved the fonts to a different place, though.
> 
> Regards,
> 
> -- Shlomi Fish

Well, there doesn't seem to be a reason to keep this bug report open, then. So closing. Feel free to reopen if you disagree :)

Regards,
Marja

Status: NEW => RESOLVED
Resolution: (none) => INVALID