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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:59:05+00:00 2026-05-27T15:59:05+00:00

I wanted to show some mathematical expressions in a winforms textbox. So I thought

  • 0

I wanted to show some mathematical expressions in a winforms textbox. So I thought the “Cambria Math” font would be a good choice but the text looked strange due the high top and bottom margin of the font. First I thought I made a mistake but according to this question, it’s the correct behavior of the font.

Screenshot of the textbox

Why does Cambria Math have these big margin values and how can I display my string correctly in the textbox like Word 2010?

(Note that I know only a little bit about typography 😉

Edit: I had to make the textbox that tall otherwise the caret would be invisible. The font size of the textbox is set to 8.25pt

  • 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-27T15:59:05+00:00Added an answer on May 27, 2026 at 3:59 pm

    Cambria Math uses Microsoft’s mathematical OpenType extensions.

    Word 2007 and later understand these and display the text with reasonable spacing.

    However, notepad and Word 2000 display the text with enormous spacing, just like winforms. I guess the font has this much space by default because some characters (like U+2320, top half integral) are much larger than the alphanumerics.

    If you use Cambria Math with a font engine (such as the one used by winforms) that doesn’t understand the math extensions, you’re going to get the big spacing.

    If you’re displaying simple expressions you might as well use Cambria.

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

Sidebar

Related Questions

What would I do if I wanted my PHP script to show some text
I wanted to show the users Name Address (see www.ipchicken.com ), but the only
I wanted to write a Custom Control that would show a family tree... so
** EDIT November 17th ** Hi again, I wanted to show some code you
I have a TreeViewer where some nodes represent folders, so I wanted to show
I have a problem with canvas i wanted to show some moving balls on
I wanted to create graphs for some math functions and tried to do this
I have some complex code. Complex, but it was working. The I wanted to
I wanted to show problem with this video. Please watch... I've 2 pages. Second
Wanted to get some consensus around a UI feature I'm working on right now.

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.