Closed ffreyer closed 3 years ago
Changes:
dpi
to 72 across the board. This seems to be what CairoMakie uses. (If this is wrong the text bbox will not match the layoutable bbox in CairoMakie when textsize is changed)teximg
to draw at 1:1 resolution in GLMakiepostion
attributetextsize
which acts as a multiplier to the tex output. textsize
and dpi
can be used to scale the imageLTeX
to be more like Label
Output from
fig = Figure(resolution = (500, 500));
ax = Axis(fig[1, 1]);
hidexdecorations!(ax); hideydecorations!(ax);
tex = MakieTeX.LTeX(fig[2, 1], raw"\int \mathbf E \cdot d\mathbf a = \frac{Q_{encl}}{4\pi\epsilon_0}", textsize=20);
fig
in a VSCode pane vs GLMakie.
Added rotation
via the model matrix but I think that is ignored when generating bounding boxes so the layouting doesn't quite work right.
Awesome to have this working again :) Should we just merge & tag this?
Yes :)
Compiles and runs again, but doesn't look right in GLMakie![Screenshot from 2021-03-05 14-38-57](https://user-images.githubusercontent.com/10947937/110125524-af6a3500-7dc3-11eb-9781-c446d67fa009.png)