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. Can I make a partial font in C#?

Can I make a partial font in C#?

Scheduled Pinned Locked Moved C#
csharpquestionc++dotnetadobe
1 Posts 1 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.
  • R Offline
    R Offline
    Robert Royall
    wrote on last edited by
    #1

    As one of my side projects I've been shuffling through the Adobe PDF 1.8 documentation, thinking about how to whip up a useful (if not entirely complete) library to print to PDF. PostScript takes a little bit to get used to but it's not bad. My latest milestone was finding a way to retrieve a font from the system and it into the output stream (as PDF features embedded fonts). Now most of the major commercial vendors implement partial font embedding (i.e. only embedding the characters that you've used in your PDF document, rather than the entire font). I think this would be a useful addition to my homebrew library, but MSDN and Google are a bit light on documentation on the Font object. So I suppose my question to you fine fellow programmers is, is there a way to take a .NET framework (2.0) Font object, remove all but a defined set of characters, and then write the remaining bits to a MemoryStream or FileStream? Would I have to do this unmanaged? Would I have to be so desperate as to break the font apart at the byte level in C++ and manually copy the relevant glyph data to the stream?

    Please don't bother me... I'm hacking right now. Don't look at me like that - doesn't anybody remember what "hacking" really means? :sigh:

    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