How to Find Icon Font?

  • Thread starter Thread starter Jeff Gaines
  • Start date Start date
J

Jeff Gaines

Is it possible to discover the font used for icons in .NET?

I have found SystemInformation.MenuFont but so far haven't been able
to find the icon font.
 
Icons don't have fonts. Icons aren't text, or even vector graphics, like
fonts are. They're raster images, which is to say, a big grid of pixel color
values. If there happens to be text inside of an icon, it's not really text,
but an image of text, which is to say, the text itself isn't stored in the
icon, but the pixels that make up the text when drawn in the way it is.

Chris
 
Icon titles do have font. In Win32 it would be:

SystemParametersInfo(SPI_GETICONTITLELOGFONT, ...);

You can always use P/Invoke if you don't find CLR equivalent.

Jerry

Chris Capel said:
Icons don't have fonts. Icons aren't text, or even vector graphics, like
fonts are. They're raster images, which is to say, a big grid of pixel color
values. If there happens to be text inside of an icon, it's not really text,
but an image of text, which is to say, the text itself isn't stored in the
icon, but the pixels that make up the text when drawn in the way it is.

Chris
 
Icon titles do have font. In Win32 it would be:

SystemParametersInfo(SPI_GETICONTITLELOGFONT, ...);

You can always use P/Invoke if you don't find CLR equivalent.

Jerry

Chris Capel said:
Icons don't have fonts. Icons aren't text, or even vector graphics, like
fonts are. They're raster images, which is to say, a big grid of pixel color
values. If there happens to be text inside of an icon, it's not really text,
but an image of text, which is to say, the text itself isn't stored in the
icon, but the pixels that make up the text when drawn in the way it is.

Chris

Chris

Sorry I was being sloppy, I meant the Icon Title Font as Jerry
surmised.

Jerry
Many thanks, that works fine, another DLL prototype for the library!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top