Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to use Raster/Bitmap Fonts ... ?

How to use Raster/Bitmap Fonts ... ?

Scheduled Pinned Locked Moved C#
csharpgraphicsjsontutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nbjahan
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • N nbjahan

      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

      K Offline
      K Offline
      Karl 2000
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups