On Nov 21, 2011, at 9:15 PM, Bernhard Pieber wrote:
Hi everyone,
I am using Pharo 1.3 and I am quite a newbie when it comes to Pharo so please be kindâ¦
we always are :) Seriously in fact :)
I saw in the font chooser that Pharo supports font families with multiple styles. On my Mac for instance the font family Helvetica has the styles Light, Light Oblique, Regular, Oblique, Bold, and Bold Oblique. In the code font families are subinstances of FontFamilyAbstract and styles are subinstances of FontFamilyMemberAbstract.
However, for creating fonts programmatically there seems to be no message which takes the style into account. There is LogicalFont class>>#familyName:pointSize:. How do I know which of the styles this uses?
Then there is LogicalFont class>>#familyName:fallbackFamilyNames:pointSize:stretchValue:weightValue:slantValue:. How should I know which parameters I have to pass in to get a certain style?
I would have expected a method like #familyName:styleName:pointSize: but I did not find one. Any idea why? Is this an omission or a feature?
probably an omission but I will wait to learn if somebody has the answer
Cheers, Bernhard