Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6901891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:43:49+00:00 2026-05-27T07:43:49+00:00

If I create a PDF using Acrobat Professional 9, containing a single sentence and

  • 0

If I create a PDF using Acrobat Professional 9, containing a single sentence and make that sentence “Georgia Bold”, then save, I end up with a PDF that references the font “Georgia,Bold”.

If I then take that font from c:\windows\fonts\georgiab.ttf and interrogate it using the following code and itext 4.2, I end up with a font name of “Georgia-Bold”

   String path = "georgiab.ttf";
   BaseFont baseFont = BaseFont.createFont( path, BaseFont.WINANSI, BaseFont.EMBEDDED );
   System.out.println( "Font " + baseFont.getPostscriptFontName() + " found in " +  path );

I’m trying to determine why when used in a PDF file, the font name has a comma whereas when used outside of a PDF file, the font name has a hyphen.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:43:49+00:00Added an answer on May 27, 2026 at 7:43 am

    The name that you get from getPostscriptFontName() is the actual name within the font file. For a TrueType font this is parsed in the BaseFont method of TrueTypeFont.java (line 498 in 5.1.1.3).

    Why does Adobe use a comma? That’s just what they decided to use. If I were to guess they probably chose the comma because some fonts use hyphens in their name but most (if any at all) never use a comma. So instead of My-Awesome-Font-Bold they chose My-Awesome-Font,Bold. Users can tell that they’re using a bold variant of a font instead of just a font that happens to have the word “bold” in it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using AlivePDF to create a PDF file, then save it to the desktop.
Using PDF, is it possible to create a single form element with multiple fields
I'm doing a project that aims to create a PDF using the exiftool library
I am using Flying Saucer (xhtmlrenderer) to create a PDF that contains a hyperlink.
I'm using XSL-FO to create PDF's. Now I have a label that I want
Can we create interactive PDF forms using reportlab? That is, a form that takes
I'm using iTextsharp library to create PDF files. I can declare for A4 Landscape
I am using the DOMPDF library to create an invoice in PDF. This document
I am using ASP.NET and I want to create a barcode in a pdf
I'm using html2fpdf for creating PDF documents. Now once I have created that, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.