In current cauldron, drakfont is using a new filechooser for selecting fonts to import. If I click Import -> Add, and then use the filechooser to select all fonts in a directory, it returns to the Import popup displaying the font list as "ARRAY" followed by some random character string which I assume identifies the array of fonts to import (previously, it showed a scrollable list of the actual fonts). If I then click Install, I see an error message in stderr saying that file ARRAY-xxxxxx does not exist, and I get an error popup saying "no font files found". Obviously, the name of the font file array is being mistaken for the contents of the array. I notice that when run from the command line, mcc shows that it is loading OpenJDK. If the new filechooser is Java-based, the error is probably that (arrayname).toString() is mistakenly being used to refer to a readable list of the array elements. Unless overriden, toString() defaults to returning the internal name of the Java object, not its contents. If the filechooser is passing back an array of selected elements, you'd (depending on what the display list of chosen fonts actually is) have to either pass the array to it or iterate through the array adding the individual elements to it. Reproducible: Steps to Reproduce:
Summary: importing multiple fonts broken in drakconf => importing multiple fonts broken in drakfont
It's not java based. It's a side effect of WebKit. What reports "rpm -q drakxtools?"
Keywords: (none) => NEEDINFOCC: (none) => thierry.vignaud
[root@jaglap ~]# rpm -q drakxtools drakxtools-16.3-1.mga4
Source RPM: drakxtools => drakxtools-16.3-1.mga4
Still happening in current cauldron with drakxtools-16.21-1.
Keywords: NEEDINFO => (none)
Still present in Mageia 4 release. It happens even if you select a single font file, i.e. font import is completely broken.
CC: (none) => mageia
hello Workarround with Kde4 Tools
CC: (none) => christian-maryse.fischer
CC: (none) => el_colegota
Could someone fix this bug? I need to import some fonts from Windows and this bug makes this impossible.
Severity: normal => majorCC: (none) => LpSolitHardware: x86_64 => AllVersion: Cauldron => 4Target Milestone: --- => Mageia 4
As said in comment 4, this problem is also present when importing only one font.
Summary: importing multiple fonts broken in drakfont => importing fonts broken in drakfont
Created attachment 5149 [details] example
CC: (none) => 231036448
The "Import Windows font" worked for me ( I have Windows in another partition), but installing one or multiple fonts is not working.
Created attachment 5150 [details] Fix file selection $file_dialog->get_filenames returns an arrayref, not an array. This patch fixes the problem.
Thierry: could you commit this fix, please?
Bug is still present in Mageia 4.1.
CC: (none) => AAW
commit 6b2533b2540385390dc46596d3ef0587cdb720cb Author: Thierry Vignaud <thierry.vignaud@...> Date: Thu Jun 26 22:33:57 2014 +0200 fix installing fonts (Frédéric Buclin, mga#11849) fallout from gtk2 -> gtk3 switch get_filenames() now returns an arrayref instead of a list. --- Commit Link: http://gitweb.mageia.org/software/drakx/commit/?id=6b2533b2540385390dc46596d3ef0587cdb720cb
commit 84f76820747fad90a3ebcc5d9521256f6711a3c8 Author: Thierry Vignaud <thierry.vignaud@...> Date: Thu Jun 26 22:33:57 2014 +0200 fix installing fonts (Frédéric Buclin, mga#11849) fallout from gtk2 -> gtk3 switch get_filenames() now returns an arrayref instead of a list. --- Commit Link: http://gitweb.mageia.org/software/drakx/commit/?id=84f76820747fad90a3ebcc5d9521256f6711a3c8
Blocks: (none) => 11778
Closed
Status: NEW => RESOLVEDResolution: (none) => FIXED