[BUG] BitFont importing doesn't work with font styles
Eric Scharff
Eric.Scharff at Colorado.EDU
Mon Apr 22 18:30:14 UTC 2002
I recently used BitFont to generate some BF to do the BF -> StrikeFont ->
TextStyle conversion.
There were two weird problems:
1) The font names were wrong. When I called
FontSet convertFontsNamed: 'MyFont'
I correctly got a new class FontSetMyFont, but the methods were called
sizeMyFont2424, not sizeMyFont24
(In both the method name and the "fontNamed:" literal.
I was able to fix these by hand.
2) I was able to call
FontSetMyFont installAsTextStyle
and this worked, but I could not use any of the synthetic styles with this
font. It turns out that StriekFont's derivativeFonts instance variable
was not getting initialized properly.
This can be fixed with this hack:
(TextConstants at: #MyFont) fontArray do: [:font | font reset]
---
This was working at some point in the past, but it is broken in a fully
updated 3.2 image. I'd fix it, but I can't figure out how it broke. :)
-Eric
More information about the Squeak-dev
mailing list
|