diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-10-03 17:15:43 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-10-03 17:15:43 -0700 |
commit | b7b24205fc2e88278bfc6477c9f3f2eb8c59f369 (patch) | |
tree | 519b6e4856346f8dd437890007b82f077a8a11c5 /src/libs/grid | |
parent | 271889386861ab8685cebddcebeaa87eea3fa417 (diff) |
modules/asc: add justify= and [hv]offset= settings
justify= now supports "aligned" and "offsetted", justify=aligned
being the existing behavior where you would specify
halign={left,right,center} and valign={top,bottom,center}.
When justify=offsetted is specified however, {valign=,halign=}
are unused and instead {hoffset=,voffset=} are expected, as
either hoffset=auto/voffset=auto for automagic offsetting
according to the x/y coords, or explicit offsetting using -1..+1
normalized fractional values serving as coordinates within the
rendered text's rectangle where to anchor the x/y coordinate.
By using halign=auto,valign=auto one can carelessly vary the x/y
coordinates using the taps (i.e. via rkt) without having to deal
with justification concerns (modulo large texts that can't
possibly fit), as the offsets will automatically adapt according
to the coordinates.
Diffstat (limited to 'src/libs/grid')
0 files changed, 0 insertions, 0 deletions