Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15612

What exactly do the font sizes in Notepad mean?

$
0
0
I used VB6 to write a program to create a simple bitmap FNT file (older format font-file, that's relatively easy to code software to generate, and still works in Windows). Now this is a fixed-width bitmap font, and the height and width of the characters in this font are both 8 pixels (and this is clearly specified in the header of the FNT file). So I installed the font I created, and went to Notepad, and went to select my font, and I was shocked to find that the font size indicated for my font was 6, not 8. 6 is neither the width nor the height of the characters in my font. What's going on here?

Is this numeber some kind of perceptual size? Like if it says 6 for font size, the characters will appear to a casual observer (who's not actually counting pixels) to be about 6 pixels high? If so, does the number that Windows software will report for my font size have something to do with the monitor that's currently connected to my PC? Like if I got a newer a monitor with higher pixel density, will my monitor report that to my computer as part of the signaling during power-on of the monitor, and then Windows will read that number and tell applications that number, which will then use that number to calculate the so called "font size" of my font, when displaying the font size in the font selection dialog box?

Viewing all articles
Browse latest Browse all 15612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>