[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WebDrawingArea - Paint.Text function missing
[Thread Prev] | [Thread Next]
- Subject: Re: WebDrawingArea - Paint.Text function missing
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Thu, 28 Aug 2025 19:41:29 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Wed, 27 Aug 2025 at 21:47, Bruce Steers <bsteers4@xxxxxxxxx> wrote: > > > On Wed, 27 Aug 2025 at 21:38, Benoît Minisini < > benoit.minisini@xxxxxxxxxxxxxxxx> wrote: > >> Le 27/08/2025 à 22:30, Bruce Steers a écrit : >> > >> > >> > On Wed, 27 Aug 2025 at 21:16, Linus <olivier.cruilles@xxxxxxxx >> > <mailto:olivier.cruilles@xxxxxxxx>> wrote: >> > >> > Hello, >> > >> > I’m testing the Paint in a WebDrawingArea (component gb.web.gui) >> > and unfortunately there is no function into Paint. to draw a simple >> > text. >> > >> > All the rest is there, Rectangle, Line, Circle, etc… but nothing for >> > the Text >> > >> > It is a limitation of the gb.web.gui component or it is just a >> > missing part? >> > >> > Thank you >> > >> > Olivier >> > >> >> This has not been implemented yet. >> >> -- >> Benoît Minisini > > > Should I try again or do you want to do it? > My last try: https://gitlab.com/gambas/gambas/-/merge_requests/282/diffs > > Respects > BruceS > Re-submitted anyway. https://gitlab.com/gambas/gambas/-/merge_requests/400 It adds Paint.Font, Paint.FillText and Paint.StrokeText to the mix. Paint font is a css string https://www.w3schools.com/cssref/pr_font_font.php that's what the canvas wants, wasn't sure how to make it WebFont or if Benoit would think it should be or not. Because Canvas has it's own fillText and strokeText functions i emulated them instead of using a method that would then use Paint.Stroke or Paint.Fill after. Respects BruceS
Re: WebDrawingArea - Paint.Text function missing | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
WebDrawingArea - Paint.Text function missing | Linus <olivier.cruilles@xxxxxxxx> |
Re: WebDrawingArea - Paint.Text function missing | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: WebDrawingArea - Paint.Text function missing | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: WebDrawingArea - Paint.Text function missing | Bruce Steers <bsteers4@xxxxxxxxx> |