PDF Editing Issues

Fix Currency Symbol and Number Font Size Mismatch in Acrobat Forms

Muhammad TalhaMuhammad Talha Oct 28, 2026 869 views

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.

How to Match Currency Symbol and Number Font Sizes in Acrobat Forms
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.
Before you start

Ensure your PDF form field is configured to allow rich text formatting before applying custom JavaScript solutions.

Solution 1Recommended

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.

1
Enable Rich Text Formatting

Right-click the specific form field and select 'Properties'. Go to the 'Options' tab, and check the box for 'Allow Rich Text Formatting'.

2
Access Custom Format Category

Navigate to the 'Format' tab within the Properties window. From the 'Select format category' dropdown menu, choose 'Custom'.

3
Insert the Custom Script

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; }

4
Adjust Font Sizes Visually

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.

Apply a Rich-Text Custom Format Script
Unicode Characters: Make sure to use the correct Unicode sequence for your desired currency symbol (e.g., \u0e3f for Thai Baht). You can replace this value for Euros, Pounds, or other symbols.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Install the Software: Run the installer and follow the simple on-screen instructions to complete the setup.
  3. 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.
Seamlessly open, review, and fill standard PDF forms without complex scriptingFully compatible with standard PDF, Microsoft Word, Excel, and PowerPoint formatsLightweight, fast, and free to use for daily document productivityIntuitive user interface that simplifies document formatting and cross-platform editing
microsoft office alternative - wps office

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.