m_texture_width = std::min(0.96, text_x / targetWidth); // targetWidth is defined in video_driver.cc, it's the base rendering width, used to project the svg onto a gltexture. currently we're targeting 1366x768 as base resolution.
280
268
281
double position_x = dimensions.x1();
269
282
if (m_align == CENTER) position_x -= 0.5 * m_texture_width;
270
283
if (m_align == RIGHT) position_x -= m_texture_width;