How to use Raster/Bitmap Fonts ... ?
-
-
Hi, Is there any way (API,...) to use Raster or Bitmap fonts in C# ? In the Documents there's a note that there's no support for those type of fonts in .NET :( Could anyone please give a hint or workaround for this :confused: Thanks in advance, nbj
Hi, If you have a bitmap containing a bitmap font you can load that bitmap and when you want to write the letter 'a' you would draw that portion of the bitmap that has the 'a' on it. The portion draw is called a frame. Your bitmap would consist of a frame for each of the 26 letters and whatever punctuation you desire. In the article "Invasion - A computer game using DirectDraw" By Mauricio Ritter found at http://www.codeproject.com/directx/invasion.asp. This approach is taken. He does this using DirectDraw, but the same approach can be taken with GDI+. You can implement your own raster font as well, but that would be much more work. Karl Baum CEO of KGB Technologies Specializing in custom software development.