For e.g. smileys and other special chars to work in Word, some extra fonts need to be installed: symbol.ttf wingding.ttf WEBDINGS.TTF. They are not installed as part of POL_Wine_InstallFonts but do exist on a normal Windows installation. I’ve done it with brute force bash wget/unzip/cp:
https://github.com/pmorch/PlayOnLinux-MSOffice2007/blob/master/msoffice.sh#L51-L89
function copyExtraFonts() {
FONTSURL=https://github.com/IamDH4/ttf-wps-fonts/archive/master.zip
FONTSZIP=ttf-wps-fonts-master.zip
FONTSDIR=ttf-wps-fonts-master
if [ "$WINEPREFIX" = "" ] ; then
POL_SetupWindow_message "How could there not be a WINEPREFIX: '$WINEPREFIX' - exiting" "$TITLE"
exit 1;
fi
FONTSDESTINATION="$WINEPREFIX/drive_c/windows/Fonts"
if [ ! -d $FONTSDESTINATION ] ; then
POL_SetupWindow_message "How could there not be a Fonts directory: '$FONTSDESTINATION' - exiting" "$TITLE"
exit 1;
fi
if ! command -v unzip > /dev/null || \
! command -v wget > /dev/null ; then
POL_SetupWindow_message "unzip and/or wget are not installed - not installing extra fonts" "$TITLE"
return
fi
if [ ! -d $PREFIXFONTSDIR ] ; then
POL_SetupWindow_message "'$PREFIXFONTSDIR' didn't exist - not installing extra fonts" "$TITLE"
return
fi
wget -O $FONTSZIP $FONTSURL
unzip $FONTSZIP
for f in symbol.ttf wingding.ttf WEBDINGS.TTF ; do
echo Copying $f to $FONTSDESTINATION
cp $FONTSDIR/$f $FONTSDESTINATION
done
rm -rf $FONTSZIP $FONTSDIR
}
copyExtraFonts
Is than an OK approach or is something else recommended?
Background: I'm updating Word 2007 so it works under PlayOnLinux on Ubuntu 18.04 which it currently doesn’t. I have something working, but want to ask here before I post a final version. See a full suggestion for a new MS Word 2007 script here: https://github.com/pmorch/PlayOnLinux-MSOffice2007 When it is ready I'll post that separately.