home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Draw_Text_208177932007.psc / @PSC_ReadMe_69256_1.txt
Text File  |  2007-09-03  |  2KB  |  15 lines

  1. Title: Draw Text as LINES on Picture Box
  2. Description: Occasionally, the ability to draw text on a picture box using the LINE method is needed, as it would allow complete control over a it's scale, location and other factors. This function accomplishes that by taking a string of characters and drawing them as lines, using the LINE method. Color, scale, rotation and other factors can be completely controlled.
  3. The function is scale independent, so it doesn't matter if you're using twips, pixels, or any other measurement system. The letters are one square unit in size, by default. If you are using pixels, that means each character is one square pixel in size. If scaled up by a factor of 20, then one character would fit within exactly 20 pixels. You can control the scaling on both the X and Y-axis.
  4. There are currently three fonts available, but fonts can be designed fairly easily. You can even design a font of your own handwriting. If you'd like to design your own font, just contact me at JamesTracy95820@gmail.com.
  5. I wrote a little program that compiles the fonts from DXF files. I used AutoCAD release 14 to design the three fonts used by DrawText(), but any drawing program capable of outputting DXF files in AutoCAD release 14 format would work fine. I'd be happy to accept new fonts! The more the merrier. Be sure to contact me first, because there is an order to how the characters have to be arranged within a drawing file. As fonts are added, I'll either try to publish them somewhere, or you can just email me and ask if any new ones have been added - I'll send you the updated function if there are any.
  6. ENJOY!
  7. James Tracy
  8. Sacramento, CA
  9. JamesTracy95820@gmail.com
  10.  
  11. This file came from Planet-Source-Code.com...the home millions of lines of source code
  12. You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=69256&lngWId=1
  13.  
  14. The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.
  15.