Fix Currency Symbol and Number Font Size Mismatch in Acrobat Forms
Question details
The user needs to make a currency symbol display at the same proportional size as the numeric value within a PDF form field.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Formatting interactive PDF form fields to display specific currency symbols and numeric values correctly.
- Observed behavior
- When inserted using AFNumber_Format, the currency symbol (such as the Thai Baht) appears significantly smaller than the numbers, resembling a subscript.
Ensure your PDF form field is configured to allow rich text formatting before applying custom JavaScript solutions.
Apply a Rich-Text Custom Format Script
Use a custom JavaScript to define separate text sizes for the currency symbol and the numerical value, overriding default scaling issues.
By default, standard formatting functions like AFNumber_Format might apply generic scaling to certain Unicode characters, making specific currency symbols appear disproportionate. Implementing a rich-text script gives you full control over specific text spans, allowing you to manually balance the sizes.
Right-click the specific form field and select 'Properties'. Go to the 'Options' tab, and check the box for 'Allow Rich Text Formatting'.
Navigate to the 'Format' tab within the Properties window. From the 'Select format category' dropdown menu, choose 'Custom'.
Click 'Edit' next to the Custom Format Script section and enter the following JavaScript code: AFNumber_Format(0, 1, 0, 0, "", true); if (event.value != "") { var spans = []; var symbol = {}; symbol.text = "\u0e3f "; symbol.textSize = 18; spans.push(symbol); var value = {}; value.text = event.value; value.textSize = 12; spans.push(value); event.richValue = spans; }
Modify the 'textSize' variables in the script (for example, setting the symbol size to 18 and the value size to 12) until both elements look proportional in your specific form layout.

Edit and Manage PDF Documents Easily with WPS Office
If complex JavaScript scripting in Acrobat feels frustrating, WPS Office provides an intuitive, lightweight alternative for viewing, modifying, and managing PDF documents seamlessly alongside full compatibility with Word, Excel, and PowerPoint formats.
- 1. Download WPS Office: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the simple on-screen instructions to complete the setup.
- 3. Open Your PDF: Launch WPS Office, drag and drop your PDF document into the workspace, and start editing or filling out your forms immediately.

Frequently Asked Questions
Why do Unicode currency symbols look like subscripts in PDFs?
Some default PDF fonts lack full Unicode support or substitute characters from another font. This substitution can drastically alter the baseline alignment and size of the symbol compared to standard numeric characters.
Can I format other currencies using this script?
Yes, you can format any currency. Simply replace the Unicode value in the script (like \u0e3f for Baht) with the Unicode corresponding to your desired currency symbol, such as \u20ac for Euro or \u00a3 for Pound.
Does rich text formatting affect the submitted form data?
No, rich text formatting only modifies the visual presentation (spans and text sizes) of the value inside the PDF document. The underlying numerical data remains unaffected and accurate when submitting the form.




