converting file types

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2008
Posts: 401
Reputation: CoolGamer48 is on a distinguished road 
Solved Threads: 40
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Pro in Training

converting file types

 
1
  #1
Jul 24th, 2008
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?
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: converting file types

 
0
  #2
Jul 25th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 401
Reputation: CoolGamer48 is on a distinguished road 
Solved Threads: 40
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Pro in Training

Re: converting file types

 
0
  #3
Jul 25th, 2008
Thanks. A lot of it went over my head, but it's a nice resource to have.
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 122
Reputation: marco93 is infamous around these parts marco93 is infamous around these parts marco93 is infamous around these parts 
Solved Threads: 12
marco93 marco93 is offline Offline
Junior Poster

Re: converting file types

 
0
  #4
Jul 25th, 2008
If you're under Windows, you don't need anything.
The Win32 api does it automatically.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 401
Reputation: CoolGamer48 is on a distinguished road 
Solved Threads: 40
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Pro in Training

Re: converting file types

 
0
  #5
Jul 25th, 2008
Originally Posted by marco93 View Post
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?
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: converting file types

 
0
  #6
Jul 25th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: converting file types

 
0
  #7
Jul 25th, 2008
Slightly obsolete but interesting link on this topic:
http://nwalsh.com/comp.fonts/FAQ/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 743 | Replies: 6
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC