das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

GrannyTextRenderer doesn't size extensions properly #11

Closed jbfaden closed 2 years ago

jbfaden commented 3 years ago

The GrannyTextRenderer has a means for allowing custom drawing codes in. For example, there's an Autoplot example which imports a LaTeX library and uses it to render LaTeX within a string. This would be a great feature, but unfortunately, the code that calculates the size of the draw region has an issue, I think.

The Autoplot script is here: https://github.com/autoplot/dev/blob/master/rfe/sf/625/latexPainter.jy

jbfaden commented 3 years ago

See the "The" which is clipped. 2021-05-28T17-42-24

cpiker commented 3 years ago

Hey, that looks cool. Didn't know Autoplot could do that.

jbfaden commented 3 years ago

"Das2 can do that," is what you mean... Autoplot gets it for free...

jbfaden commented 2 years ago

This is finally fixed, where the wrong font object was passed to the painter when layout is done.