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 8088093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:59:21+00:00 2026-06-05T18:59:21+00:00

I want to build a console-like output using JTextPane. Therefore I am using a

  • 0

I want to build a console-like output using JTextPane. Therefore I am using a monospaced font:

textpane.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 12));

This works fine for all kind of alphanum (like a-z, 0-9 etc.) characters, but when it comes to symbols like ‘\u2588‘ (█), the font isn’t monospaced anymore.

Did I forgot something? Or isn’t there a monospaced font which includes smybols?

  • 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-06-05T18:59:22+00:00Added an answer on June 5, 2026 at 6:59 pm

    Ok, first off, it sounds to me like you’re trying to address a couple of different things here, so I’ll try to address them both separately.

    1. You need a font that is monospaced for all unicode characters, symbols or otherwise.

    According to this page, there were 12886 alphanumeric and “symbol” characters defined by the Unicode 3.2 standard. Unicode is now at 6.0, so we can probably assume that number is larger now. I’m also assuming here that “alphanumeric” means English characters, because Unicode supports over 100000 characters spanning many languages. At any rate, 12886 English-recognized characters and symbols is still A LOT, and I doubt that there are many free fonts that support all of them.

    That said, I end up using Courier New for most of my Java applications that need a mono-spaced font with character support. It supports the ‘\u2588’ character you mentioned above as well as many other important ones like the “degrees” symbol.

    2. This mono-spaced font needs to be “cross-platform”

    I know for certain that Mac OS X and all flavors of Windows support Courier New, and the versions of Linux I run on do too (RedHat… can’t remember the version number), although not all Linux versions have this font natively. Anyway… you might try Courier New and see if it works for you. If not, you can probably find free tools online for testing font/character support.

    Final thoughts

    I hate to say it, but I doubt that there are many fonts out there that support all alphanumeric/symbol characters defined by the Unicode standard, least of all being mono-spaced, cross-platform, and free. If possible, it might be more worth your time to try to figure out what symbols you will need for certain, then choose a font that supports those symbols and is in turn supported by the platforms you know you will run your application on. If you absolutely need to have support for all Unicode symbols, unfortunately, it probably won’t come free.

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

Sidebar

Related Questions

I would like to build up a new IDocument object step by step using
I want build a sketch pad app on iPhone, I assume that this type
I want to build a simple application with the MVVM pattern. This application will
I want to build a 2 dimensional (non ragged at this point) object array.
I want to build GQL query to get an object using its numeric id.
I'd like to build my application such that debug mode is a console application
What tools can minify JS/CSS files after saving files without using console? I want
When viewing a project in Jenkins, I'd like to see the last console output
I want to be able to type something like: Console.WriteLine(You have {0:life/lives} left., player.Lives);
I want to build a text console by means of which I can edit

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.