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

Re: A stupid question (Align Class)


Justify means align the Verticaly the textblock  On TOP/BOTTOM/CENTER after
computing the global Height size of the full With aligned  (Left and Right)
Text.

The number of word by line is computed by taking the words of the line +
number of spaces * minimalspace width.... etc :-)

according to the qt documentation :
Rich text can :
align (left, right, center, justify)
valign (top, middle, bottom)

https://doc.qt.io/qt-6/richtext-html-subset.html#block-attributes

So It will be useful to have :
Align.
TopJustify
Justify
BottomJustify
:-)


Le mer. 26 févr. 2025 à 07:54, BB <adamnt42@xxxxxxxxx> a écrit :

>
> On 26/2/25 4:16 pm, Fabien Bodard wrote:
> > Le mar. 25 févr. 2025 à 22:06, T Lee Davidson <t.lee.davidson@xxxxxxxxx>
> a
> > écrit :
> >
> >> On 2/25/25 12:47 PM, Fabien Bodard wrote:
> >>> Why Align.Justify in Paint.DrawRichText vertically center the text ????
> >>>
> >>> --
> >>> Fabien Bodard
> >> Isn't that what justifying text is supposed to do?
> >>
> > Maybe my query was not well written 😅
> >
> > I'm talking about the fact the text is centered in the middle and not in
> > the top of the container.
> >
> >
> >> --
> >> Lee
> >>
> >> --- Gambas User List Netiquette [
> >> https://gambaswiki.org/wiki/doc/netiquette] ----
> >> --- Gambas User List Archive [
> https://lists.gambas-basic.org/archive/user]
> >> ----
> >>
> >>
> >>
> I've got to agree with you Fabien. However, there was a large and
> serious discourse several years ago about what exactly "justifying text"
> meant.
>
> b
>
>
>

-- 
Fabien Bodard

References:
A stupid question (Align Class)Fabien Bodard <gambas.fr@xxxxxxxxx>
Re: A stupid question (Align Class)T Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: A stupid question (Align Class)Fabien Bodard <gambas.fr@xxxxxxxxx>
Re: A stupid question (Align Class)BB <adamnt42@xxxxxxxxx>