943,671 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 950
  • C++ RSS
Jul 24th, 2008
1

converting file types

Expand Post »
A friend of mine recently asked me how one would convert a .bmp font to a .ttf. I said I was unsure, but it got me thinking to how I would code a program to do that. How would someone who wants to create a .bmp to .ttf converter go about it? Is there some sort of documentation somewhere explaining how the .ttf file format works? And in addition to that, what about other file formats? Where do the people who code programs that create .jpegs or play .mp3s learn about how to properly read/write from those file formats? Is the information publicly available by somewhere?
Reputation Points: 77
Solved Threads: 40
Posting Pro in Training
CoolGamer48 is offline Offline
401 posts
since Jan 2008
Jul 25th, 2008
0

Re: converting file types

http://www.wotsit.org/ has many file formats documented, and is a good place to start.
Some formats are proprietary, meaning there may be little or no information in the public domain.

You could also try "ttf file format" as a specific search, to locate other examples.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Jul 25th, 2008
0

Re: converting file types

Thanks. A lot of it went over my head, but it's a nice resource to have.
Reputation Points: 77
Solved Threads: 40
Posting Pro in Training
CoolGamer48 is offline Offline
401 posts
since Jan 2008
Jul 25th, 2008
-1

Re: converting file types

If you're under Windows, you don't need anything.
The Win32 api does it automatically.
Reputation Points: -76
Solved Threads: 14
Junior Poster
marco93 is offline Offline
132 posts
since Apr 2008
Jul 25th, 2008
0

Re: converting file types

Click to Expand / Collapse  Quote originally posted by marco93 ...
If you're under Windows, you don't need anything.
The Win32 api does it automatically.
The Win32 api can convert .bmp fonts into .ttf file?
Reputation Points: 77
Solved Threads: 40
Posting Pro in Training
CoolGamer48 is offline Offline
401 posts
since Jan 2008
Jul 25th, 2008
0

Re: converting file types

Is bmp font == pixel font? If so, I think it's impossible automatically convert pictures to True Type font. The last one is not only character glyphs but really a special program for rendering fonts with different rasters and sizes. There are tons of utilities (of course, libraries too) which are capable to convert ttf (and other outline) fonts to pixel fonts, but I never heard about automatic reverse direction transformations.

On the other hand, numerous font generators and editors are capable to import pictures as a base for interactive ttf font design and improvement.
Reputation Points: 1234
Solved Threads: 347
Postaholic
ArkM is offline Offline
2,001 posts
since Jul 2008
Jul 25th, 2008
0

Re: converting file types

Slightly obsolete but interesting link on this topic:
http://nwalsh.com/comp.fonts/FAQ/
Reputation Points: 1234
Solved Threads: 347
Postaholic
ArkM is offline Offline
2,001 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Must be C++ thing cuz it works in C
Next Thread in C++ Forum Timeline: compare 2D arrays





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC