On Thu, 9 Nov 2006, Thijs Kinkhorst wrote:
On Wed, 2006-11-08 at 23:23 +0100, Tomas Pospisek wrote:
+ mv /usr/share/fonts/truetype/Times_New_Roman_Bold_Italic.ttf
/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf
+ defoma-font unregister truetype
/usr/share/fonts/truetype/Times_New_Roman_Bold_Italic.ttf
W: /usr/share/fonts/truetype/Times_New_Roman_Bold_Italic.ttf: not registered.
dpkg: error processing msttcorefonts_1.4_all.deb (--install):
Thanks, appearently the font was already unregistered. No need to fail
on that since that's exactly what we want. I've changed the preinst to
deal with that, could you try this package and see whether it resolves
the problem:
http://people.debian.org/~thijs/msttcorefonts_1.5~pre0_all.deb
It doesn't. I downloaded the tarball from the same URL added a "set -x" to
the top of the preinst and this is what I get:
# dpkg -i ../msttcorefonts_1.5~pre0_all.deb
(Reading database ... 274572 files and directories currently installed.)
Preparing to replace msttcorefonts 1.2 (using
.../msttcorefonts_1.5~pre0_all.deb) ...
+ '[' -e /var/lib/msttcorefonts/ms-fonts ']'
+ mkdir -p /usr/share/fonts/truetype/msttcorefonts/
++ cat /var/lib/msttcorefonts/ms-fonts
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Andale_Mono.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial_Black.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial_Bold_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Comic_Sans_MS.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Comic_Sans_MS_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Courier_New.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Courier_New_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Courier_New_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Courier_New_Bold_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Georgia.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Georgia_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Georgia_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Georgia_Bold_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Impact.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Times_New_Roman.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Times_New_Roman_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Times_New_Roman_Bold_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Times_New_Roman_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Trebuchet_MS.ttf ']'
+ mv /usr/share/fonts/truetype/Trebuchet_MS.ttf
/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf
+ defoma-font -t unregister truetype
/usr/share/fonts/truetype/Trebuchet_MS.ttf
W: /usr/share/fonts/truetype/Trebuchet_MS.ttf: not registered.
dpkg: error processing ../msttcorefonts_1.5~pre0_all.deb (--install):
subprocess pre-installation script returned error exit status 1
warning: /usr/share/fonts/X11/truetype does not exist or is not a
directory
warning: /usr/lib/X11/fonts/truetype does not exist or is not a directory
These fonts were provided by Microsoft "in the interest of cross-
platform compatibility". This is no longer the case, but they are
still available from third parties.
You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form, including changes
to the file name or packaging format.
All fonts downloaded and installed.
Errors were encountered while processing:
../msttcorefonts_1.5~pre0_all.deb
Seems like the "-t" option doesn't work in defoma-font:
# ls /usr/share/fonts/truetype/Trebuchet_MS*
/usr/share/fonts/truetype/Trebuchet_MS_Bold.ttf
/usr/share/fonts/truetype/Trebuchet_MS_Italic.ttf
/usr/share/fonts/truetype/Trebuchet_MS_Bold_Italic.ttf
defoma-font -t unregister truetype
/usr/share/fonts/truetype/Trebuchet_MS.ttf
W: /usr/share/fonts/truetype/Trebuchet_MS.ttf: not registered.
# echo $?
1
Is it correct ot call unregister on a file that doesn't exist (only the
_Bold, _Italic and _Bold_Italic variants of the font exist...), as you do
above?
*t
--
--------------------------------------------------------
Tomas Pospisek
http://sourcepole.com - Linux & Open Source Solutions
--------------------------------------------------------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]