1. 06 Feb, 2019 2 commits
    • Albert Astals Cid's avatar
      Update (C) of last commit · 2c5fadd7
      Albert Astals Cid authored
    • Albert Astals Cid's avatar
      Use reinterpret_cast to silence cast-align warnings · 5a72f3cd
      Albert Astals Cid authored
      In ImageOutputDev it comes directly from malloc, and malloc guarantees
      alignment for basic types, so we're good
      In ArthurOutputDev it comes from QImage::bits that uses malloc
      internally, so we're good
      In cairo* it comes from cairo_image_surface_get_data that comes from
      pixman_image_get_data that returns a uint32_t * so we're only going to
      the original type alignment
  2. 21 Dec, 2018 2 commits
    • Oliver Sander's avatar
      Fix memory handling bug · 230652c1
      Oliver Sander authored
      The CIDToGID map is an array of ints.  The code properly allocated
      a number N of ints, but then used memcpy for N unsigned shorts.
      That left the upper half of the array uninitialized.
    • Oliver Sander's avatar
      Remove all Splash code from the Arthur backend · 3c561104
      Oliver Sander authored
      Previously, Splash code was used to get the codeToGID
      mapping for font rendering (which you apparently cannot
      get from Qt).  This patch reimplements the same functionality
      using only FoFi and FreeType.  This makes the code easier
      to understand, because it removes several layers of
  3. 06 Dec, 2018 2 commits
  4. 11 Nov, 2018 1 commit
  5. 23 Oct, 2018 1 commit
  6. 10 Oct, 2018 1 commit
    • Adam Reichold's avatar
      Remove usage of pragmas interface and implementation · 7f20ace4
      Adam Reichold authored
      GCC recommends not using them for a long time and its documentation says:
      > These #pragmas have been superceded as of GCC 2.7.2 by COMDAT support
      > and the “key method” heuristic mentioned in Vague Linkage.
      > Using them can actually cause your program to grow due to
      > unnecessary out-of-line copies of inline functions.
      Also nobody seems to set USE_GCC_PRAGMAS and sometimes they were
      guarded by just __GNUC__ which upsets Clang.
  7. 23 Sep, 2018 1 commit
    • Albert Astals Cid's avatar
      More const · b8b82412
      Albert Astals Cid authored
      Marked some caches as mutable
      Fixed an actual bug in page::text that was swapping the page cropbox in
      each call
  8. 31 Aug, 2018 2 commits
  9. 19 Apr, 2018 1 commit
  10. 07 Apr, 2018 3 commits
  11. 05 Apr, 2018 1 commit
  12. 27 Mar, 2018 1 commit
  13. 02 Feb, 2018 1 commit
  14. 14 Jan, 2018 1 commit
  15. 08 Jan, 2018 1 commit
  16. 28 Dec, 2017 3 commits
  17. 18 Dec, 2017 1 commit
    • Oliver Sander's avatar
      Arthur: 'clip' should intersect new and old clipping path · c138ec62
      Oliver Sander authored
      Previously, the 'clip' method of the ArthurOutputDev class
      replaced the current clipping path with the one given in
      the GfxState variable.  However, the expected behavior is
      to intersect the new path with the old one, and use the
      result as the new clipping path.
  18. 03 Nov, 2017 1 commit
  19. 30 Oct, 2017 1 commit
  20. 22 Oct, 2017 2 commits
  21. 21 Oct, 2017 2 commits
  22. 05 Oct, 2017 1 commit
  23. 30 Sep, 2017 2 commits
  24. 14 Sep, 2017 1 commit
    • Oliver Sander's avatar
      Replace Splash font rendering by Qt font rendering · cc43c720
      Oliver Sander authored
      Previously, the Arthur backend would use Splash code to do
      its font rendering.  That was not a satisfactory solution:
      Qt can do font rendering directly.  Also, the Splash font
      rendering in the Arthur code had a few bugs, which lead
      to legible-but-not-pretty fonts.
      This patch replaces the Splash font rendering by Qt font
      rendering.  Some Splash code will have to remain, because
      Qt seems unable to do the proper charcode-to-glyph-index
      I took a lot of inspiration from Mihai Niculescu's patch at
      That's why the patch adds Mihai's name in the copyright list.
  25. 22 Aug, 2017 1 commit
  26. 13 Aug, 2017 1 commit
    • Oliver Sander's avatar
      qt5: ArthurOutputDev: Properly set the QPainter transformation · 1abf98b7
      Oliver Sander authored
      Previously, the code did not touch the QPainter world transformation
      matrix.  Rather, the code contained ad hoc coordinate transformations
      scattered throughout the code.  This patch does a cleanup: the QPainter
      transformation matrix is set properly, and the hand-coded
      transformations are removed.  This should not affect the rendering
      output, but it makes the current (and future!) code simpler to
      read and write.
  27. 08 Mar, 2017 1 commit
  28. 18 Jan, 2015 1 commit
  29. 14 Apr, 2014 1 commit
    • Albert Astals Cid's avatar
      Initialize tmpBufLen · 1fbf9866
      Albert Astals Cid authored
      CID #16957
      It isn't really needed since locateFont always returns a fontLoc with a non null
      path if fontLoc itself is not null, but it doesn't hurt either