Home > Software engineering >  C/WinGDI/Gdi for help how to create a monospaced font of equal width and height
C/WinGDI/Gdi for help how to create a monospaced font of equal width and height

Time:11-07

How to create the width and height of equal width font??????? LOGFONT the height and width of exactly how to fill in??????? really fast to make me mad

(g for Gdiplus: : Graphics object)
Thought can result is the ghost appearance:

If added FIXED_PIXCH attribute, is the Courier New, although the width, the character width and height are not unified
And the height and width of each plus or minus sex I tested, not all
.
A great god genuflect is begged help, thank you very much

No money , to 100 points, for help

CodePudding user response:

The top... For help

CodePudding user response:

Try ExtTextOut , you can specify the interval between each character

CodePudding user response:

Font, the font itself determines the width of each character and size, not external set,
Font have a monospaced font and wider font,
Look at your description you need is a monospaced font, under Windows Fixedsys English font is monospaced font, you can use this font a try,
All equal to the width of character Spaces, I and W, equal to the width of,

CodePudding user response:

reference 4 floor zjq9931 response:
font problem, is the font itself determines the width of each character and size, not external set,
Font have a monospaced font and wider font,
Look at your description you need is a monospaced font, under Windows Fixedsys English font is monospaced font, you can use this font a try,
All equal to the width of character Spaces, I and W, equal to the width of,

Yes, but the height and width are not equal

CodePudding user response:

Try adjusting monospaced font size

CodePudding user response:

reference 5 floor szx0427 reply:
Quote: refer to 4th floor zjq9931 response:
font, the font itself determines the width of each character and size, not external set,
Font have a monospaced font and wider font,
Look at your description you need is a monospaced font, under Windows Fixedsys English font is monospaced font, you can use this font a try,
All equal to the width of character Spaces, I and W, equal to the width of,

Yes, but the height and width are not equal

Twice the width of height is in English, this is the characteristic of English, because English is half Angle, if it is ok to change the Angle of English,
Also can be in Chinese,

CodePudding user response:

Then the whole Angle of English in Chinese!

CodePudding user response:

Corner of the whole Chinese
A=0 xa3c1...
A=0 xa3e1...

CodePudding user response:

Font generally is not high, so the system will not have such options
English is generally high
2 times or soGeneral capital letters in the middle and lower case characters will be lower, such as g, this is decided by the language itself, if it is in Chinese, can slant on
If must be high to find such a font file, or make a font
  • Related