-
Hello, I have been trying to obtain the height and width dimensions of a formula, I got it this way. ` public (double width, double height) GetTextDimensions(string textoIngresado)
the problem is that WpfTeXEnvironment.Create(TexStyle.Display, 12, "Arial"); in scale size change to any value, by default it is 20 from the same WpfMath code so it will always return the dimensions in Scala 20. Well, I don't know if there is another way to obtain the dimensions of the formula by changing the custom scale . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try additionally passing the scale to It is known to be a bit confusing that the scale is used in two different places. Perhaps there's a room for improvement. |
Beta Was this translation helpful? Give feedback.
Try additionally passing the scale to
RenderToBitmap
, e.g.formula.RenderToBitmap(environment, scale: 12.0)
.It is known to be a bit confusing that the scale is used in two different places. Perhaps there's a room for improvement.