Charlie Jiang pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
9ac95b36
by Charlie Jiang at 2022-10-04T00:17:08+08:00
3 changed files:
- src/ftinspect/engine/fontinfo.hpp
- src/ftinspect/glyphcomponents/glyphcontinuous.cpp
- src/ftinspect/maingui.cpp
Changes:
... | ... | @@ -223,7 +223,7 @@ struct FontFixedSize |
223 | 223 | double xPpem;
|
224 | 224 | double yPpem;
|
225 | 225 | |
226 | - // Returns that if the list is updated. WL: ???
|
|
226 | + // Returns `true` when the list is actually updated.
|
|
227 | 227 | // We use a callback because Qt needs `beginResetModel` to be called
|
228 | 228 | // *before* the internal storage updates.
|
229 | 229 | static bool get(Engine* engine,
|
... | ... | @@ -205,7 +205,8 @@ GlyphContinuous::mouseMoveEvent(QMouseEvent* event) |
205 | 205 | {
|
206 | 206 | positionDelta_ = prevPositionDelta_ + delta;
|
207 | 207 | positionDelta_.setX(0); // Don't move horizontally.
|
208 | - // but use the renderer // WL: ???
|
|
208 | + // The string renderer will handle the horizontal delta. See below.
|
|
209 | +
|
|
209 | 210 | // Note the double use of `scale_`: one for undoing `delta /= scale_`,
|
210 | 211 | // the other one for effectively dividing the width by the scaling
|
211 | 212 | // factor.
|
... | ... | @@ -267,7 +267,7 @@ MainGUI::createLayout() |
267 | 267 | // left side
|
268 | 268 | settingPanel_ = new SettingPanel(this, engine_);
|
269 | 269 | |
270 | - leftLayout_ = new QVBoxLayout; // The only point is to set `margin->remove`?
|
|
270 | + leftLayout_ = new QVBoxLayout;
|
|
271 | 271 | leftLayout_->addWidget(settingPanel_);
|
272 | 272 | leftLayout_->setContentsMargins(32, 32, 0, 16);
|
273 | 273 |