mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 12:52:07 +00:00
Update Emboss font preview alignment (#8013)
* Fix style preview size per resolution (cherry picked from commit b67c4785f0d300b5615126ea1df1d518dd6d00b0) * Align font preview to left. (closer to font name) (cherry picked from commit eb9b8c0c2b112f0f7649e58f4f6d7977380b8442) --------- Co-authored-by: Filip Sykala - NTB T15p <Filip.Sykala@Prusa3D.cz>
This commit is contained in:
@@ -142,8 +142,9 @@ void CreateFontImageJob::finalize(bool canceled, std::exception_ptr &)
|
||||
glsafe(::glBindTexture(target, m_input.texture_id));
|
||||
|
||||
GLsizei w = m_tex_size.x(), h = m_tex_size.y();
|
||||
GLint xoffset = m_input.size.x() - m_tex_size.x(), // arrange right
|
||||
yoffset = m_input.size.y() * m_input.index;
|
||||
GLint xoffset = 0; // align to left
|
||||
// GLint xoffset = m_input.size.x() - m_tex_size.x(); // align right
|
||||
GLint yoffset = m_input.size.y() * m_input.index;
|
||||
glsafe(::glTexSubImage2D(target, m_input.level, xoffset, yoffset, w, h,
|
||||
m_input.format, m_input.type, m_result.data()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user