borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Help /w code)Next Topic (FONT PROBLEM) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Converting a font into a graphic image
Poster Message
Racer-X
Level: Big Cheese


Registered: 20-09-2005
Posts: 26

icon Converting a font into a graphic image

I am wondering if anyone has ever tried or know how to take a font charater(s) and convert it into a .BMP, .GIF, or .JPG file? Or does anyone know if this is NOT possible?

I have a program that shows guitar chords along with a label that uses a font to display the chord pattern.  I would like to be able to manipulate this label as a graphic file.  This is because the font used (FretQwikC.ttf) is unusal because it takes about 8-12 character to form a single chord image/pattern. (I am guessing that it has characters that have a zero width).  I would like to create an image and allow users to copy that image into the clipboard instead of the string of characters.

Please see http://wonderdogprograms.com/programs/frethelper to see an image of my program (or download it).

[Edited by Racer-X on 20-09-2005 at 10:03 AM GMT]

20-09-2005 at 03:01 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: Converting a font into a graphic image

Hi,
Yes.. defintly possible to convert font to BMP (assuming that windows displays it)... it's a bit of GDI but not too bad. The issue is how much you want to do... you can always use a picturebox and write onto it to copy the image, or pure gdi to convert a font to a bmp.
google "convert font to bmp".
k

____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

24-09-2005 at 01:47 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Converting a font into a graphic image
Previous Topic (Help /w code)Next Topic (FONT PROBLEM) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder