Skip to content

Commit

Permalink
Customize info.plist to add key to use font auto-scaling in OS X. Thi…
Browse files Browse the repository at this point in the history
…s should at least fix the blurry texts in Macs with retina display support (issue goldendict#264)
  • Loading branch information
chulai committed Aug 26, 2013
1 parent fda164e commit 2ebda78
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions goldendict.pro
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ mac {
macmouseover.mm \
speechclient_mac.mm
ICON = icons/macicon.icns
QMAKE_INFO_PLIST = myInfo.plist
QMAKE_POST_LINK = mkdir -p GoldenDict.app/Contents/Frameworks & \
cp -nR $${PWD}/maclibs/lib/ GoldenDict.app/Contents/Frameworks/ & \
mkdir -p GoldenDict.app/Contents/MacOS/locale & \
Expand Down
22 changes: 22 additions & 0 deletions myInfo.plist
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 2ebda78

Please sign in to comment.