Customize info.plist to add key to use font auto-scaling in OS X. This should at least fix the blurry texts in Macs with retina display support (issue #264)

This commit is contained in:
Julian Depetris Chauvin 2013-08-25 21:44:04 -03:00
parent fda164e63c
commit 2ebda7879a
2 changed files with 23 additions and 0 deletions

View file

@ -155,6 +155,7 @@ mac {
macmouseover.mm \ macmouseover.mm \
speechclient_mac.mm speechclient_mac.mm
ICON = icons/macicon.icns ICON = icons/macicon.icns
QMAKE_INFO_PLIST = myInfo.plist
QMAKE_POST_LINK = mkdir -p GoldenDict.app/Contents/Frameworks & \ QMAKE_POST_LINK = mkdir -p GoldenDict.app/Contents/Frameworks & \
cp -nR $${PWD}/maclibs/lib/ GoldenDict.app/Contents/Frameworks/ & \ cp -nR $${PWD}/maclibs/lib/ GoldenDict.app/Contents/Frameworks/ & \
mkdir -p GoldenDict.app/Contents/MacOS/locale & \ mkdir -p GoldenDict.app/Contents/MacOS/locale & \

22
myInfo.plist Normal file
View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleIconFile</key>
<string>@ICON@</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleGetInfoString</key>
<string>@SHORT_VERSION@</string>
<key>CFBundleSignature</key>
<string>@TYPEINFO@</string>
<key>CFBundleExecutable</key>
<string>@EXECUTABLE@</string>
<key>CFBundleShortVersionString</key>
<string>@SHORT_VERSION@</string>
<key>CFBundleIdentifier</key>
<string>org.goldendict</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>