[Cuis-dev] Make label morphs replicate font and color of Text
Juan Vuletich
juan at cuis.st
Fri Nov 28 07:35:38 PST 2025
Very nice, Thank you!
These fixes are now at GitHub.
Cheers!
On 2025-11-27 6:13 PM, Facundo Javier Gelatti via Cuis-dev wrote:
> Hi!
>
> I attach a change to make LabelMorphs copy the color and font family
> of their Text content.
> Here's an example you can use to see how it works now and after
> filing-in the change:
>
> TrueTypeFontFamily readAllTrueTypeFontsIn: DirectoryEntry
> trueTypeFontsDirectory / 'AlexBrush'.
> aText := Text string: 'hola' attributes: { TextColor blue.
> TextFontFamily familyName: 'Alex Brush' }.
> LabelMorph contents: aText :: openInHand
>
> I also fixed a bug in Text>>#fontIfApplying:default:, where it failed
> if defaultFont was nil (which was expected to be sometimes, because it
> received #ifNil:).
>
> Cheers!
> Facu
>
--
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251128/7a9171ea/attachment.htm>
More information about the Cuis-dev
mailing list