Commits on Source (6)
-
f290eb04
-
Alexei Podtelezhnikov authored751b0c3d
-
Charlie Jiang authored
Fixes #26. When the window resizes, the invisible tabs don't get notified. Therefore, when the active tab changes, we need to trigger a manual relayouting of invisible tabs. * src/ftinspect/widgets/glyphindexselector.hpp, src/ftinspect/widgets/glyphindexselector.cpp: Extract public method `relayoutNavigation` from `resizeEvent`. * src/ftinspect/panels/abstracttab.hpp: Add `relayout` virtual method. * src/ftinspect/maingui.cpp: Call `AbstractTab::relayout` on the new tab when the active tab changes. * src/ftinspect/panels/singular.cpp, src/ftinspect/panels/singular.hpp, src/ftinspect/panels/continuous.cpp, src/ftinspect/panels/continuous.hpp: Implement `relayout` method and call `relayoutNavigation` of the glyph index selector in `relayout`.
2186a044 -
Alexei Podtelezhnikov authored6aca8caf
-
Charlie Jiang authored
* src/ftinspect/engine/mmgx.cpp, src/ftinspect/engine/mmgx.hpp: Load the default values of MMGX axes from the named instance instead of the global default one. * src/ftinspect/engine/engine.cpp, src/ftinspect/engine/engine.hpp: Switch the named instance using `FT_Set_Named_Instance` when loading fonts.
f563855d -
Charlie Jiang authored
Now the named instance selector no longer doubles the default named instance. `FT_Get_Default_Named_Instance` is used to get the default NI index. The default one is labeled as " (default)". * src/ftinspect/widgets/tripletselector.cpp: Properly handle the new 1-based named instance indices. Label the default NI correctly. * src/ftinspect/engine/engine.cpp, src/ftinspect/engine/engine.hpp: Add `Engine::defualtNamedInstanceIndex`. * src/ftinspect/engine/mmgx.cpp: Change comments.
399eb8cf