Browse Source

two more files

master
Nicolas Massé 6 years ago
parent
commit
02ec9eecc8
  1. 1
      file-conversion/pdf-to-png.sh
  2. 53
      ios-fonts.sh

1
file-conversion/pdf-to-png.sh

@ -0,0 +1 @@
gs -sDEVICE=pngalpha -o pdf/file-%03d.png -sDEVICE=pngalpha -dDEVICEWIDTHPOINTS=5184 -dDEVICEHEIGHTPOINTS=3456 -r460.8 -dNOINTERPOLATE carte.pdf

53
ios-fonts.sh

@ -0,0 +1,53 @@
#!/bin/bash
cat > ios-fonts.mobileconfig <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadDisplayName</key>
<string>iOS Custom Fonts</string>
<key>PayloadIdentifier</key>
<string>fr.itix.ios-fonts</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>$(uuidgen)</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadContent</key>
<array>
EOF
for i in ~/Library/Fonts/*.?tf; do
echo "Adding $i to the mobileconfig..."
cat >> ios-fonts.mobileconfig <<EOF
<dict>
<key>Name</key>
<string>$i</string>
<key>PayloadIdentifier</key>
<string>$(uuidgen)</string>
<key>PayloadType</key>
<string>com.apple.font</string>
<key>PayloadUUID</key>
<string>$(uuidgen)</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>Font</key>
<data>
$(openssl base64 -in "$i")
</data>
</dict>
EOF
done
cat >> ios-fonts.mobileconfig <<EOF
</array>
</dict>
</plist>
EOF
Loading…
Cancel
Save