Skip to content
Snippets Groups Projects
  1. Aug 12, 2024
  2. Jun 21, 2024
  3. Apr 05, 2024
  4. Jan 27, 2024
  5. Dec 14, 2023
  6. Dec 13, 2023
  7. Dec 10, 2023
  8. Dec 08, 2023
  9. Dec 07, 2023
  10. Nov 18, 2023
    • Alexei Podtelezhnikov's avatar
      [ftlint] Count X- and Y-turns. · 55aa2d8e
      Alexei Podtelezhnikov authored
      The number of turns reflects the glyph complexity and the workload
      for the B/W rasterizer.
      
      * src/ftlint.c (Explore): New function to count turns.
      (Main): Report them.
      55aa2d8e
  11. Nov 09, 2023
  12. Nov 07, 2023
  13. Oct 05, 2023
    • Charlie Jiang's avatar
      [ftinspect] Add PostScript constructed name display for MM/GX fonts. · ada48b53
      Charlie Jiang authored
      Fixes #57 . Added a text box showing current constructed PostScript name
      with MM/GX coords included according to TN #5902.
      
      * src/ftinspect/panels/settingpanelmmgx.cpp,
        src/ftinspect/panels/settingpanelmmgx.hpp:
        Add the PostScript name text box.
        Track the dirty state of the axes, so when all axes are in "default" state
        the "basic" PS name will be displayed (e.g. "NotoSansCJKtc-DemiLight"),
        while when any axis has its value modified, the constructed PS name will
        be displayed (e.g. "NotoSansCJKTC_350wght").
        Even when the value equals to the default one, as long as the value was
        touched by user, the name will be the constructed one. To clear the dirty
        state, the "Def" button for each axis, or the "Reset to Default" button
        should be used.
      
      * src/ftinspect/engine/engine.cpp, src/ftinspect/engine/engine.hpp:
        Add two fields tracking PS name (one with "basic" name, and one possibly
        constructed from MM/GX coords).
      
      * src/ftinspect/engine/fontinfo.cpp: Change to use the PS name from engine.
      ada48b53
    • Charlie Jiang's avatar
      [ftinspect] Separate the `FTC_FaceID` of faces/sizes for rendering and ... · 3228489a
      Charlie Jiang authored
      ... information retrieval.
      
      This fixes the PostScript name display in the Font Info tab.
      
      * src/ftinspect/engine/engine.cpp, src/ftinspect/engine/engine.hpp:
        Use the highest bit of `FTC_FaceID` to indicate that the face/size is for
        rendering (safe for some modification to the face, e.g. MM/GX coords).
      3228489a
  14. Oct 03, 2023
  15. Aug 25, 2023
  16. Aug 24, 2023
  17. Aug 17, 2023
    • Hugh McMaster's avatar
      ftlint.1: Instruct man(1) to run the groff `tbl` preprocessor · a668fa3d
      Hugh McMaster authored
      The latest version of groff (1.23.0) emits a warning when it detects the
      use of table macros (.TS, .TE) with no .TW (table width) macro defined:
      
        tbl preprocessor failed, or it or soelim was not run; table(s) likely
        not rendered (TE macro called with TW register undefined).
      
      The warning occurs because the `tbl` preprocessor was not invoked by
      the `man` command. To fix the issue, we need to instruct man(1) to
      run the `tbl` preprocessor before rendering the source as text.
      
      This issue was detected by Debian's Lintian tool.
      a668fa3d
  18. Aug 13, 2023
  19. Aug 06, 2023
    • Charlie Jiang's avatar
      [ftinspect] Fix default named instance handling. · 399eb8cf
      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
    • Charlie Jiang's avatar
      [ftinspect] Fix named instances switching. · f563855d
      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
  20. Jul 28, 2023
  21. Jul 26, 2023
    • Charlie Jiang's avatar
      [ftinspect] Fix the glyph index selector layout when the window resizes. · 2186a044
      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's avatar
  22. Jul 21, 2023
  23. Jul 16, 2023
  24. Jul 08, 2023
  25. Jun 24, 2023
  26. Jun 03, 2023
    • HinTak's avatar
      Fix out-of-memory conditions with newer 'librsvg'. · 626b43db
      HinTak authored and Werner Lemberg's avatar Werner Lemberg committed
      Excerpts from `rsvg_handle_get_intrinsic_dimensions` section in
      `librsvg/rsvg.h`:
      
      ```
      Before librsvg 2.54.0, the `out_has_width` and `out_has_height` arguments
      would be set to true or false depending on whether the SVG document actually
      had `width` and `height` attributes, respectively.
      
      However, since librsvg 2.54.0, `width` and `height` are now [geometry
      properties](https://www.w3.org/TR/SVG2/geometry.html
      
      ) per the SVG2
      specification; they are not plain attributes.  SVG2 made it so that the
      initial value of those properties is `auto`, which is equivalent to
      specifying a value of `100%`.  In this sense, even SVG documents which lack
      `width` or `height` attributes semantically have to make them default to
      `100%`.  This is why since librsvg 2.54.0, `out_has_width` and
      `out_has_heigth` are always returned as `TRUE`, since with SVG2 all
      documents *have* a default width and height of `100%`.
      ```
      
      * src/rsvg-port.c (rsvg_port_preset_slot): Adjust for change of behavior of
      `rsvg_handle_get_intrinsic_dimensions` in librsvg 2.53+.  We avoid
      `LIBRSVG_CHECK_VERSION` as it is possible to build against one version but
      run against another version.
      
      Signed-off-by: default avatarHin-Tak Leung <htl10@users.sourceforge.net>
      626b43db
    • HinTak's avatar
      Fix 'librsvg' deprecation warnings. · 73c2159b
      HinTak authored and Werner Lemberg's avatar Werner Lemberg committed
      
      * src/rsvg-port.c (rsvg_port_preset_slot): Use `rsvg_handle_render_document`
      instead of `rsvg_handle_render_cairo`, and `rsvg_handle_render_layer`
      instead of `rsvg_handle_render_cairo_sub`, as suggested by the warning,
      conditionally on newer librsvg 2.52+.
      
      Signed-off-by: default avatarHin-Tak Leung <htl10@users.sourceforge.net>
      73c2159b
  27. May 22, 2023
Loading