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

  • SEARCH
  • Home
  • 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 7494321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:28:12+00:00 2026-05-29T17:28:12+00:00

I am using a custom font (TTF) in my Java application where i set

  • 0

I am using a custom font (TTF) in my Java application where i set the font into graphics and do some DrawText.

Currently I use Font.createFont() to load the custom TTF font. But When i try to print the graphics canvas into a Virtual PDF Printer(PDFCreator Virtual printer), only the fonts installed in my Windows comes as actual text. The custom font i loaded is rasterized while printing. So my custom font texts are not selectable in the produced PDF.

Is there any way to avoid this? Does anyone know what is the difference between setting a installed font to the canvas and setting the Custom font created using Font.CreateFont to the canvas.

  • 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-29T17:28:15+00:00Added an answer on May 29, 2026 at 5:28 pm

    I think no way to fix this. It’s somewhere in the Virtual PDF library. It tries to render with font and if font is not available it draws the letters.

    From my experience of using IText you can add custom font to the generated PDF. So try to use another PDF generator.

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

Sidebar

Related Questions

Hi am using webview ,i need to use custom font(verdana.ttf) how can i do
In my application I'm using custom fields, with set*** methods wich changes some parameters
In my Application i am using Custom font. i copied my font.ttf file in
Is there a way to add some custom font on a website without using
I am using the following code to embed Arial into my application: [Embed(source='../assets/fonts/Arial.ttf',fontFamily='CustomFont',fontWeight='regular', unicodeRange='U+0020-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E,U+0080-U+00FF,U+0100-U+017F,U+0400-U+04FF,U+0370-U+03FF,U+1E00-U+1EFF,U+2022,U+2219,U+20AC-U+21AC',
I have some buttons my page using a custom font face using the CSS
I am using a custom font using @font-face . Everything is working but some
I'm using a custom font throughout my application (which, incidentally, I've frustratingly found out
Ok, using a custom font since 3.2 is pretty straightforward: Load the font in
In our Java Swing application, we're loading a custom font and adding it to

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.