Office 2011 Font Fix

From AFP548 Wiki
Jump to: navigation, search

Office 2011 installs some fonts that OS X already has by default. To fix this duplication, create a payload free package that runs the following postflight script:

rm -rf "$3/Library/Fonts/Microsoft/Andale Mono"
rm -rf "$3/Library/Fonts/Microsoft/Arial.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Arial Italic.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Arial Bold.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Arial Bold Italic.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Arial Black"
rm -rf "$3/Library/Fonts/Microsoft/Arial Narrow"
rm -rf "$3/Library/Fonts/Microsoft/Arial Rounded Bold"
rm -rf "$3/Library/Fonts/Microsoft/Brush Script.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Comic Sans MS"
rm -rf "$3/Library/Fonts/Microsoft/Georgia"
rm -rf "$3/Library/Fonts/Microsoft/Impact"
rm -rf "$3/Library/Fonts/Microsoft/Tahoma"
rm -rf "$3/Library/Fonts/Microsoft/Times New Roman.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Times New Roman Italic.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Times New Roman Bold.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Times New Roman Bold Italic.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Trebuchet MS"
rm -rf "$3/Library/Fonts/Microsoft/Verdana.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Verdana Italic.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Verdana Bold.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Verdana Bold Italic.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Wingdings.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Wingdings 2.ttf"
rm -rf "$3/Library/Fonts/Microsoft/Wingdings 3.ttf"