12.1: feathered selections, Select Subject, Soft Light, the fixed-width font menu (Compositor 1.1.1–1.1.4)
This commit is contained in:
1 parent
3e52fd90ee
commit
ee34c338d4
42 files changed
+1087
-94
No files matched your search
@@ -37,7 +37,15 @@ void InlineTextEditor::synchronize(const TextDraft &draft)
|
||||
}
|
||||
const LayerTextStyle &style = draft.style;
|
||||
// Point text has no box: it is what is typed.
|
||||
m_logicalSize = EditorSession::textBoxSize(style);
|
||||
if (style.boxSize) {
|
||||
m_logicalSize = *style.boxSize;
|
||||
} else {
|
||||
if (m_measuredStyle != style) {
|
||||
m_measuredSize = EditorSession::textBoxSize(style);
|
||||
m_measuredStyle = style;
|
||||
}
|
||||
m_logicalSize = m_measuredSize;
|
||||
}
|
||||
LayerTransform transform = draft.transform.value_or(LayerTransform{.origin = draft.origin, .size = m_logicalSize});
|
||||
// Point text grows at its layer's scale, corner kept.
|
||||
const int index = draft.layerID ? indexOf(document.layers, *draft.layerID) : -1;
|
||||
|
||||
Reference in new issue
Block a user