On 19 April 2010 17:16, Schwab,Wilhelm K <[email protected]> wrote:
> Hello all,
>
> What is the best way to create/access fonts?  So far, TextStyle defaultFont 
> seems to work.  I was about to write that I was feeling lost otherwise when I 
> recalled setting fonts by name in Migrate, and a comment therein reveals that 
> I stole some preferences from Lukas who used LogicalFont.  Perhaps specifying 
> the family name following his example (with cues from exploring LogicalFont 
> all) is the answer?
>
> What about what Microsoft (sorry...) calls font metrics?  By involving a 
> device context (canvas in our world), one can find out how big a particular 
> string will be on the target device's resolution, and allowing for kerning.
>
> So far, I have found #heightOf: and #widthOf: in the Font hierarchy, which 
> means they know nothing of the intended device, and do not (obviously anyway) 
> seem to know about kerning.  Are there glaringly missing features here, or is 
> this simply an consequence of printing being done via PostScript and 
> therefore still in terms of point sizes?
>

I think there is a _glaringly missing features here_.
The fonts in squeak seems evolved from being a simple raster bitmaps,
and don't quite well resembling a functionality beyond this.

> Bill
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to