[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web Font from WebControl font


On Sat, 30 Aug 2025 at 22:04, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 30/08/2025 à 22:57, Bruce Steers a écrit :
> > Could do with a nice way to set a new Font (gb.web.gui) from the string
> > of a control.
> >
> > I have this working but i do not know how robust it is...
> >
> >    Paint.Font = Font[Split(hWebObject.Font, ", ").Reverse().Join(" ")]
> >
> > So a control that has the Font string of "serif,bold,32px" converts to
> > Font["32px bold serif"]
> >
> > Maybe a Font.FromString() method or Paint.GetFont() ?
> >
> > Respects
> > BruceS
> >
>
> I'm currently working on the Font class syntax, so that it can be used
> with the 'WebControl.Font' and the 'Paint.Font' properties the same way.
>
> Stay tuned.
>
> --
> Benoît Minisini


You sir are an absolute star :)

Thank you.
WebDrawingArea really needed this text drawing.
custom controls are very possible now :)

Respects
BruceS

Follow-Ups:
Re: Web Font from WebControl fontBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Web Font from WebControl fontBruce Steers <bsteers4@xxxxxxxxx>
Re: Web Font from WebControl fontBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>