To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10713
Subject: 
Re: LPub DPI control?
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 6 Mar 2008 04:35:06 GMT
Viewed: 
7685 times
  
In lugnet.cad.dev, Kevin L. Clague wrote:
  
The only issue left is fonts. I have to figure out how to express fonts in real world units and how to map that to points or whatever. Time to learn more new stuff. If anyone is knows much about this topic let me know.

Scalable fonts would probably be best to use (if they can be found).

I learnt a fair bit fiddling with Freetype in txt2dat, which has to translate point size to ldraw units. Freetype makes it pretty easy, as it gives you a nice API that works for lots of scalable fonts. I chose not to support non-scalable fonts in txt2dat, so not sure how hard they are to use.

ROSCO


Subject: 
Re: LPub DPI control?
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 6 Mar 2008 16:06:07 GMT
Viewed: 
7441 times
  
In lugnet.cad.dev, Ross Crawford wrote:
   In lugnet.cad.dev, Kevin L. Clague wrote:
  
The only issue left is fonts. I have to figure out how to express fonts in real world units and how to map that to points or whatever. Time to learn more new stuff. If anyone is knows much about this topic let me know.

Scalable fonts would probably be best to use (if they can be found).

I learnt a fair bit fiddling with Freetype in txt2dat, which has to translate point size to ldraw units. Freetype makes it pretty easy, as it gives you a nice API that works for lots of scalable fonts. I chose not to support non-scalable fonts in txt2dat, so not sure how hard they are to use.

ROSCO

Hi Rosco, I’m going to make my font dialog, and default font picker only work with scalable fonts. They are perfect for this kind of situation. I guess that is why they were created by Adobe a long time ago (I read the Wiki!)

Thanks, Kevin


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR