Determining positioning of text (and non-text) content in an isidraw (or isigraph).
See http://jsoftware.com/pipermail/programming/2021-November/059300.html for example. Conceptually, it could also be useful in building a bitmap representation of a font extracted from an isidraw to use in other imaging contexts (viewmat, opengl, etc.). Thanks, -- Raul On Fri, Nov 19, 2021 at 9:48 PM bill lam <[email protected]> wrote: > > Just curious, how glqtextmetrics can be useful to you? > > On Sat, 20 Nov 2021 at 10:04 AM Raul Miller <[email protected]> wrote: > > > Actually, thinking about this, there's a way of abusing the parser to > > express tacit definitions in a multiline format that's fairly > > readable. For this example: > > > > glqtextmetrics=: _{{ > > m=. '"',libjqt,'" glqtextmetrics ',(IFWIN#'+'),' i *i' > > u=. m&cd@(<7#00) > > (1&{:: [ chkgl2)@u"1 > > }} > > > > This is kind of a one-off approach, though, and when putting together > > a library like gl2 it might be better to encapsulate some of this for > > reuse. > > > > Thanks again, > > > > -- > > Raul > > > > On Fri, Nov 19, 2021 at 8:57 PM Raul Miller <[email protected]> wrote: > > > > > > Sure, and it's tempting to go tacit (though this will probably line > > > wrap in email, despite my attempts to remove unneeded spaces): > > > > > > glqtextmetrics=: (1&{::[chkgl2)@(('"',libjqt,'" glqtextmetrics > > > ',(IFWIN#'+'),' i *i')&cd@(<7#00))"1 > > > > > > Thanks, > > > > > > -- > > > Raul > > > > > > On Fri, Nov 19, 2021 at 6:05 PM Henry Rich <[email protected]> wrote: > > > > > > > > If you're going to use {{ }} you might as well use 7#00 instead of 2-2 > > . > > > > > > > > Henry Rich > > > > > > > > On 11/19/2021 3:51 PM, Raul Miller wrote: > > > > > Thanks! > > > > > > > > > > And, unless you're trying to do something similar to what I am trying > > > > > to do, you might not have much use for text metrics. > > > > > > > > > > Setting up test cases and running example code is an easy area to > > > > > neglect. (I know I have often neglected this realm.) > > > > > > > > > > Anyways, I am going to use > > > > > > > > > > glqtextmetrics=: {{ > > > > > tm=. 7#2-2 > > > > > chkgl2 cdrc=. ('"',libjqt,'" glqtextmetrics ',(IFWIN#'+'),' i > > *i') cd <tm > > > > > 1{::cdrc > > > > > }}"1 > > > > > > > > > > until the gl2 package gets updated. > > > > > > > > > > Thanks again, > > > > > > > > > > > > > > > > > -- > > > > This email has been checked for viruses by AVG. > > > > https://www.avg.com > > > > > > > > ---------------------------------------------------------------------- > > > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
