mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 21:55:59 +08:00
add skew for linux italic without italic inside font
This commit is contained in:
parent
4ec4bafe19
commit
5800d21ad6
@ -862,8 +862,14 @@ bool GLGizmoEmboss::load_font(const wxFont &font)
|
|||||||
m_font = std::move(font_ptr);
|
m_font = std::move(font_ptr);
|
||||||
WxFontUtils::update_property(m_font_prop, font);
|
WxFontUtils::update_property(m_font_prop, font);
|
||||||
|
|
||||||
// TODO: fix dynamic creation of italic
|
#ifdef __linux__
|
||||||
|
// dynamic creation of italic, on linux is italic made by skew of normal font
|
||||||
|
wxFontStyle style = font.GetStyle();
|
||||||
|
if (style == wxFONTSTYLE_ITALIC &&
|
||||||
|
!Emboss::is_italic(*m_font) ) {
|
||||||
|
m_font_prop.skew = 0.2;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// TODO: decide when rewrite emboss depth
|
// TODO: decide when rewrite emboss depth
|
||||||
m_font_prop.emboss = m_font_prop.size_in_mm / 2.f;
|
m_font_prop.emboss = m_font_prop.size_in_mm / 2.f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user