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...
X twitter logo

X's Standalone Messaging App XChat Disappears From App Store

Monday September 14, 2026 3:25 pm PDT by
X's XChat app is no longer available from the App Store. The app does not come up when searching for it in the App Store, and clicking a link to it on the web returns an unavailable error. XChat allows X users to communicate with one another using end-to-end encryption and disappearing messages. The app's description says it is a "private, focused space built for conversation." XChat launched...
app store blue banner epic 1

Apple Asks Supreme Court to Throw Out App Store Contempt Ruling

Monday September 14, 2026 4:28 pm PDT by
Apple today filed its opening merits brief with the Supreme Court as it prepares to fight the contempt ruling that forced it to change its App Store rules. Apple is asking the Supreme Court to reverse or vacate the contempt order, which would return the App Store to its pre–2025 rules. The Supreme Court filing is part of Apple's ongoing legal battle with Epic Games, which has gotten more...

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's Own Home Security Camera Still Coming Next Year
Apple's Own Home Security Camera Still Coming Next Year
59 minutes ago
Unfolded iPhone Duo Lets You Preview Documents in a Two-Page Layout
Unfolded iPhone Duo Lets You Preview Documents in a Two-Page Layout
1 hour ago
Formula 1 Coverage on Apple TV to Get Dolby Atmos Later This Month
Formula 1 Coverage on Apple TV to Get Dolby Atmos Later This Month
3 hours ago
LG Making Doorbell, Lock, and Cameras for Apple's Home Hub
LG Making Doorbell, Lock, and Cameras for Apple's Home Hub
14 hours ago
Apple to Report Q4 2026 Earnings on November 2
Apple to Report Q4 2026 Earnings on November 2
14 hours ago
Three Years of 80% Charge Limits on iPhone: The Results
Three Years of 80% Charge Limits on iPhone: The Results
16 hours ago
macOS 27.2 Further Hints at MacBook With Touch-Enabled OLED Display
macOS 27.2 Further Hints at MacBook With Touch-Enabled OLED Display
17 hours ago
The 15 Best Apple Deals Under $200 for Prime Day
The 15 Best Apple Deals Under $200 for Prime Day
18 hours ago
AirPods Pro 3 and AirPods Max 2 Get Big Price Drops for Prime Day
AirPods Pro 3 and AirPods Max 2 Get Big Price Drops for Prime Day
18 hours ago
Apple Releases Second Public Betas of iOS 27.2 and macOS Golden Gate 27.2
Apple Releases Second Public Betas of iOS 27.2 and macOS Golden Gate 27.2
18 hours ago
'Crossy Road Rush' Launching Exclusively on Apple Arcade in November
'Crossy Road Rush' Launching Exclusively on Apple Arcade in November
19 hours ago
Apple Watch Series 9 vs. Series 12 Buyer's Guide: Is It Worth Upgrading?
Apple Watch Series 9 vs. Series 12 Buyer's Guide: Is It Worth Upgrading?
19 hours ago
Prime Day Savings: TVs, Headphones, Chargers, and Other Tech Accessories
Prime Day Savings: TVs, Headphones, Chargers, and Other Tech Accessories
20 hours ago
Apple TV 4K Rumored to Support Four HomePods for Surround Sound
Apple TV 4K Rumored to Support Four HomePods for Surround Sound
21 hours ago
iPhone 18 Pro and Duo Were Once Planned With 16GB RAM, Leaker Says
iPhone 18 Pro and Duo Were Once Planned With 16GB RAM, Leaker Says
21 hours ago
Apple's Entire Mac Lineup Gets Massive Discounts for Prime Day
Apple's Entire Mac Lineup Gets Massive Discounts for Prime Day
22 hours ago
Prime Day iPad Deals Include Low Prices on iPad Air, iPad Mini, and More
Prime Day iPad Deals Include Low Prices on iPad Air, iPad Mini, and More
22 hours ago
Apple's $634 Million Apple Watch Patent Bill Just Got Even Bigger
Apple's $634 Million Apple Watch Patent Bill Just Got Even Bigger
22 hours ago
Amazon Prime Big Deal Days Offers Major Discounts on AirPods, iPads, and Much More
Amazon Prime Big Deal Days Offers Major Discounts on AirPods, iPads, and Much More
17 hours ago
Microsoft OneDrive to Drop Support for These iPhone Models
Microsoft OneDrive to Drop Support for These iPhone Models
1 day ago
HomePod Mini Waits Reach Eight Weeks Ahead of Rumored Refresh
HomePod Mini Waits Reach Eight Weeks Ahead of Rumored Refresh
1 day ago
Apple Music Is Getting a New Logo
Apple Music Is Getting a New Logo
1 day ago
Apple Quietly Boosts Email Feature for iCloud+ Subscribers
Apple Quietly Boosts Email Feature for iCloud+ Subscribers
5 hours ago
iOS 27.2 May Let You Hide Specific Suggested Actions in Messages
iOS 27.2 May Let You Hide Specific Suggested Actions in Messages
1 day ago
Sources: Apple Planning Two Sets of Product Launches in October
Sources: Apple Planning Two Sets of Product Launches in October
1 day ago
Apple Announces iPhone Duo Apps Can Now Be Submitted to App Store
Apple Announces iPhone Duo Apps Can Now Be Submitted to App Store
1 day ago
macOS 27.2 Adds Touch Gestures Ahead of MacBook Ultra
macOS 27.2 Adds Touch Gestures Ahead of MacBook Ultra
2 days ago
Apple and AT&T Have Yet to Explain Cause of iPhone 18 Pro Max Issue
Apple and AT&T Have Yet to Explain Cause of iPhone 18 Pro Max Issue
2 days ago
tvOS 27.2 Code Hints at Apple Intelligence for New Apple TV
tvOS 27.2 Code Hints at Apple Intelligence for New Apple TV
2 days ago
Apple Seeds Third macOS Golden Gate 27.2 Beta to Developers
Apple Seeds Third macOS Golden Gate 27.2 Beta to Developers
2 days ago