Apple's Autoscanning iTunes Card Promo Codes Work via Hidden Font, Can be Replicated by Devs - MacRumors
Skip to Content

Apple's Autoscanning iTunes Card Promo Codes Work via Hidden Font, Can be Replicated by Devs

When you purchase an iTunes gift card and redeem it in the App Store, the camera on your iPhone, iPad, or Mac can scan the code on the card to recognize it automatically, saving you the time of typing the numbers in manually.

Equinux, the company behind Mail Designer Pro 3, dug into how Apple's promo code engine works in an effort to make their own scannable cards, and the results are quite interesting. As it turns out, the scanning feature in the App Store is tuned to recognize two things: a unique, hidden font and the dimensions of the box around it.

itunescardpromocode
Equinux tried the box alone with a range of fonts like Courier and Monaco, and attempted to identify the unique characteristics of the font to find it, but were unsuccessful. Ultimately, the team realized the font that Apple's using is hidden deep within iTunes.

The breakthrough came when we noticed that when you scan a card with your iPhone, the app briefly displays a "scanned" overlay of the code. This means the font must be embedded in the app somewhere. We tried the same with iTunes on macOS. And voila - the iTunes on Mac behaves the same way.

When you look at some of the other folders inside iTunes, we found a tantalizing plugin called "CodeRedeemer." It showed promise. But alas, no font files there either. The app binary does give a hint of where the heavy lifting is being done: "CoreRecognition.framework."

Hidden in the CoreRecognition.framework, there are two fonts: "Scancardium," for entering and recognizing codes, and "Spendcardium," which appears to be for obscuring credit card details as they're entered. The two fonts can be found by going to Finder on a Mac, clicking Go, choosing Go to Folder and pasting the following: /System/Library/PrivateFrameworks/CoreRecognition.framework/Resources/Fonts/

With a simple double click, the fonts can be installed on a Mac and can be used within different apps. While this is a neat breakdown for end users, it's of particular interest to developers because these fonts can be used to create custom App Store promo code cards that can be scanned in the same way as iTunes gift cards.

appstorepromocodecustom
Equinux outlines the exact font height to use and how to position it within the surrounding box to get Apple's engine to recognize it, details the company uncovered after investing a lot of time in tweaking fonts and the border of the required box.

Equinux even went one step further and created helpful Sketch and Photoshop templates that developers can use to create App Store promo code cards that can be automatically scanned using a device camera and recognized by the App Store.

Related Forum: Mac Apps

Popular Stories

iPhone Duo Slack

Apple Announces iPhone Duo Apps Can Now Be Submitted to App Store

Monday October 5, 2026 7:15 pm PDT by
Apple today announced that apps optimized for the iPhone Duo can now be submitted for App Store approval, ahead of the foldable device launching on Friday, October 23. While existing App Store apps will automatically run on the iPhone Duo, only apps built with the iOS 27.1 SDK or later can dynamically resize to fill the entire space of the inner display, whereas unoptimized apps will have...
Liquid Glass App Store Feature

New App Store Rules Target AI Deepfakes and Nudify Apps

Friday October 16, 2026 3:21 pm PDT by
Apple today expanded its App Store moderation rules to cover AI-generated nonconsensual intimate imagery. Sexually explicit content was already banned, but now Apple says app developers must proactively prevent and remove AI-generated deepfakes from their platforms. Apple warns that apps with offending content could be removed from the App Store if developers fail to act. The updated 1.2...
iOS App Store General Feature Clorange

Apple's App Store Chief Explains Its Push for Premium Games

Tuesday October 20, 2026 8:58 pm PDT by
More premium games are launching on the App Store this year than last, Apple's App Store Worldwide head Carson Oliver told Polygon, including more franchises coming from PC and consoles. Oliver said: We've seen incredible growth of games coming to the App Store, in general, with more premium games releasing on the App Store this year than last. While many of those are indies, we're also...

Top Rated Comments

121 months ago
Is it legal to use the font in your own promo materials?
Score: 10 Votes (Like | Disagree)
cateye Avatar
121 months ago
There's nothing "secret" about using a font this way. There have been specialty fonts that make for easy and reliable optical character recognition (OCR) via "fuzzy" recognition (e.g. using a photograph) for years. Apple may have developed their own font for whatever reason, but there are literally dozens of speciality typefaces that allow for this. Barcodes work this way as well. Microsoft made a stink at one point how you could hold up a MS gift card in front of a Kinect and have it read similarly quickly. It's a bit of a parlor trick, but does save you from having to type in all those letters and numbers.
Score: 8 Votes (Like | Disagree)
121 months ago
Probably the same one that's used for scanning HomeKit keys as well, the font looks similar.
Score: 8 Votes (Like | Disagree)
121 months ago
Apple technology, not always the first, but they make sure they always try to make it the best!
Score: 5 Votes (Like | Disagree)
121 months ago
Since one can only presume that font is licensed by Apple, not sure how developers would be able to use it legally unless Apple some day officially extends the feature to develops and open sources the font.
Score: 4 Votes (Like | Disagree)
winglet69 Avatar
121 months ago
Feels like someone invested a lot of time into something with a very small benefit.
Uh...you've just described most hacking. I take it then, you place little value on problem-solving or learning something you didn't already know. Good thing there are still inquisitive people or we'd all still be scribbling on cave walls.

:D
Score: 3 Votes (Like | Disagree)
Latest Stories
Apple Pulls Keynote, Pages and Numbers From App Store
Apple Pulls Keynote, Pages and Numbers From App Store
39 minutes ago
Apple Updates More Apps With iPhone Duo Support
Apple Updates More Apps With iPhone Duo Support
1 hour ago
Apple Will Label Apps 'Made for iPhone Duo' in App Store
Apple Will Label Apps 'Made for iPhone Duo' in App Store
4 hours ago
Amazon Takes $49 Off iPad With Prices Starting at $399.99
Amazon Takes $49 Off iPad With Prices Starting at $399.99
5 hours ago
F1 on Apple TV Now Available in Dolby Atmos
F1 on Apple TV Now Available in Dolby Atmos
5 hours ago
Apple Reveals More Than 50 Apps That Will Be Updated for iPhone Duo
Apple Reveals More Than 50 Apps That Will Be Updated for iPhone Duo
6 hours ago
Apple Blocks Certificates That Could Help Attackers Fake Websites
Apple Blocks Certificates That Could Help Attackers Fake Websites
7 hours ago
Giant iPhone Duo Installations Spotted at Apple Fifth Avenue
Giant iPhone Duo Installations Spotted at Apple Fifth Avenue
8 hours ago
iPhone Duo 2 Prototypes Include Under-Display Face ID
iPhone Duo 2 Prototypes Include Under-Display Face ID
8 hours ago
Tesla App Gains iPad and iPhone Duo Support
Tesla App Gains iPad and iPhone Duo Support
12 hours ago
Apple Reportedly Boosts iPhone Duo Orders by 44%
Apple Reportedly Boosts iPhone Duo Orders by 44%
12 hours ago
Fortnite Returning to Australian App Store After Court Ruling
Fortnite Returning to Australian App Store After Court Ruling
13 hours ago
Apple Ordered to Open iPhone to Rival App Stores in Australia
Apple Ordered to Open iPhone to Rival App Stores in Australia
13 hours ago
Apple Suppliers Face Hurdles Cutting Circuit Board Emissions
Apple Suppliers Face Hurdles Cutting Circuit Board Emissions
13 hours ago
Things Updated for iPhone Duo With Adaptive Layout
Things Updated for iPhone Duo With Adaptive Layout
14 hours ago
Simplicity and Siri AI Are HomeView's Killer Features, Apple Says
Simplicity and Siri AI Are HomeView's Killer Features, Apple Says
14 hours ago
iPhone Duo Reviewers Really Miss Face ID
iPhone Duo Reviewers Really Miss Face ID
19 hours ago
Does the iPhone Duo Run Hot? Here's What Reviews Found
Does the iPhone Duo Run Hot? Here's What Reviews Found
21 hours ago
Apple Music's New Look is Now Live on Apple's Website
Apple Music's New Look is Now Live on Apple's Website
21 hours ago
Anthropic Launches Claude Duet, a Proactive AI Agent
Anthropic Launches Claude Duet, a Proactive AI Agent
22 hours ago
What 32,000 Folds Did to the iPhone Duo's Hinge
What 32,000 Folds Did to the iPhone Duo's Hinge
23 hours ago
iPhone Duo's Hidden FaceTime Camera Takes 'Trash' Photos
iPhone Duo's Hidden FaceTime Camera Takes 'Trash' Photos
1 day ago
iPhone Duo Has 'Edge Light' Feature That Debuted on Macs Last Year
iPhone Duo Has 'Edge Light' Feature That Debuted on Macs Last Year
1 day ago
Apple Support App Updated for iPhone Duo's Larger Display
Apple Support App Updated for iPhone Duo's Larger Display
1 day ago
Amazon Sweetens the Deal on Entry-Level 16-Inch MacBook Pro With $570 Off
Amazon Sweetens the Deal on Entry-Level 16-Inch MacBook Pro With $570 Off
1 day ago
iPhone Duo Tips Over on MagSafe Stands When Unfolded
iPhone Duo Tips Over on MagSafe Stands When Unfolded
1 day ago
Apple Music's New Look Officially Announced
Apple Music's New Look Officially Announced
1 day ago
iPhone Duo Supports Apple Pencil Starting With iOS 27.2
iPhone Duo Supports Apple Pencil Starting With iOS 27.2
1 day ago
iPhone Duo Accessories Roundup: Cases and Screen Protectors From OtterBox, ZAGG, and More
iPhone Duo Accessories Roundup: Cases and Screen Protectors From OtterBox, ZAGG, and More
1 day ago
Apple Stores Will Have 'Limited' Availability of iPhone Duo for Walk-In Customers
Apple Stores Will Have 'Limited' Availability of iPhone Duo for Walk-In Customers
1 day ago