1. 26 Oct, 2015 1 commit
    • Cory Quammen's avatar
      BUG 15797: Fix text property ID computation · 1d91f9ba
      Cory Quammen authored
      Only a few settings defined by the vtkTextProperty were used to
      compute the text property ID in MapTextPropertyToId(). This can cause
      incorrect rendering when settings that weren't considered, such as the
      shadow setting, were changed.
      
      Added a more general hashing function, HashBuffer(), to accommodate
      all the vtkTextProperty settings, and use this to compute the
      vtkTextProperty hash. HashString() is no longer used, but remains for
      backwards compatibility.
      
      Added a test to ensure that changing a setting results in the
      computation of a different ID.
      1d91f9ba
  2. 12 Oct, 2015 1 commit
  3. 23 Sep, 2015 1 commit
  4. 16 Sep, 2015 1 commit
  5. 11 Sep, 2015 1 commit
  6. 10 Sep, 2015 1 commit
  7. 28 Aug, 2015 1 commit
  8. 25 Aug, 2015 1 commit
  9. 04 Aug, 2015 1 commit
  10. 17 Jun, 2015 1 commit
  11. 14 May, 2015 2 commits
  12. 09 Apr, 2015 1 commit
    • David C. Lonie's avatar
      Align to a fixed-height font bbox, rather than a "tight" one. · 953d3b7c
      David C. Lonie authored
      I used to move the alignment point onto the edge of the rendered
      text, but this lead to some layout issues, including a particularly
      nasty possibility of having a label rendered outside of a constrained
      bounding box.
      
      This should be made an option at some point (a tight alignment property
      on vtkTextProperty perhaps?), as it does look nicer on certain centered
      labels.
      953d3b7c
  13. 06 Apr, 2015 1 commit
  14. 01 Apr, 2015 1 commit
  15. 30 Mar, 2015 2 commits
  16. 28 Mar, 2015 1 commit
    • Sean McBride's avatar
      Fixed illegal left shift of negative number · ea9ebe87
      Sean McBride authored
      vtkFreeTypeTools.cxx:634:71: runtime error: left shift of negative value -450
      
      The code previously assumed that vtkTextProperty's
      GetOrientation() returns an angle between 0 and 360.
      ea9ebe87
  17. 25 Mar, 2015 1 commit
    • David C. Lonie's avatar
      Improve appearance of small-sized mathtext. · f5ee8c17
      David C. Lonie authored
      The alpha mask returned by Matplotlib for mathtext renderings
      appears very dim when font size is small.
      
      This patch uses the same trick in MatplotlibMathTextUtilities
      as FreeTypeTools, which doesn't blend RGB values when the
      background alpha == 0. This gives a bolder appearance to the
      text, like it was before the text background color options
      were added.
      
      Also clamped the tprop opacity setters to [0., 1.] and updated
      a baseline that had small mathtext.
      f5ee8c17
  18. 23 Mar, 2015 1 commit
    • David C. Lonie's avatar
      Add a debug-only yellow dot at the text alignment point. · 1d9e3edb
      David C. Lonie authored
      In addition to painting the texture background a transparent
      grey, vtkFreeTypeTools::SetDebugTextures(true) will now make
      the alignment texel yellow.
      
      To use:
      
      #include <vtkFreeTypeTools.h>
      
      vtkFreeTypeTools::GetInstance()->DebugTexturesOn();
      1d9e3edb
  19. 06 Feb, 2015 1 commit
    • David C. Lonie's avatar
      Fix conic point identification in the path renderer. · 00bb0197
      David C. Lonie authored
      The numeric value of FT_CURVE_TAG_CONIC is 0, so the translation
      to local ControlType failed when testing
      
        if (fttag & FT_CURVE_TAG_CONIC) { ... }
      
      Replaced the translation with a more robust approach.
      
      This wasn't readily apparent using the fonts embedded in VTK, as those
      fonts consist entirely of linear and cubic curves.
      
      Also fixed this functiont to use the pen_[xy] variables, which account
      for kerning.
      
      Change-Id: Ibcd7d28365ecad22d62073dc8bbf89405478f791
      00bb0197
  20. 14 Jan, 2015 2 commits
  21. 08 Jan, 2015 1 commit
    • Marcus D. Hanwell's avatar
      Fix compile failures seen with latest FreeType · 88f5a5bf
      Marcus D. Hanwell authored
      Thanks to Oon-Ee Ng for reporting the issue on the VTK users list.
      This makes some minor changes to account for changes in return type
      in the FreeType API. VTK should now compile against the latest release.
      
      Change-Id: I5dcb608573f387a37ebbc2f9621e89c4551d98f2
      88f5a5bf
  22. 27 Oct, 2014 1 commit
  23. 16 Oct, 2014 1 commit
    • David C. Lonie's avatar
      Improve aligned and rotated text. · 125149a5
      David C. Lonie authored
      This patch fixes aligned rotated text by anchoring the rendered image
      or path to the location described by the text property's justification
      properties.
      
      As a result, alignment options are no longer ignored by the vtkTextActor3D.
      
      Change-Id: I6640b6dc8d579b408ac85670b732b7c94763a5d7
      125149a5
  24. 15 Oct, 2014 2 commits
  25. 06 Aug, 2014 1 commit
    • Ben Boeckel's avatar
      warnings: use floating point intermediate values · 37aad40d
      Ben Boeckel authored
      When calculating values which are, at the end, integers, the
      intermediate values may have some nuance to them where floating point
      can help precision.
      
      Change-Id: I4b9cd14f80b74200ae4fde1369a51c5d4275cd18
      37aad40d
  26. 09 Jul, 2014 1 commit
  27. 23 Aug, 2013 1 commit
    • David C. Lonie's avatar
      Add unicode text support to charts and context2D. · 5ff4f80b
      David C. Lonie authored
      This patch assumes all 8-bit strings rendering in the OpenGL context2D
      device are UTF-8 encoded, and uses vtkUnicodeString::from_utf8 to allow
      extended character sets to be used in Context2D 8-bit strings.
      
      This also fixes an issue with UTF16 rendering alignment, and updates the
      image cache to use 16-bit strings for freetype renderings and 8-bit strings
      for mathtext rendering.
      
      Change-Id: Ic5f905f0a2ba70919e5df59120ce7a8ee536945a
      5ff4f80b
  28. 26 Apr, 2013 1 commit
    • Kathleen Biagas's avatar
      Improve text shadows. · ce1b4aff
      Kathleen Biagas authored
      Blend pixels between character and shadow to prevent gaps where background
      color shows between the text and its shadow.
      
      TestScalarBar.png will show the improvement.
      
      Change-Id: I642100a68cae7152d557081d264867d11e79f56a
      ce1b4aff
  29. 09 Apr, 2013 1 commit
  30. 27 Mar, 2013 1 commit
    • Kathleen Biagas's avatar
      Correct multi-line text spacing. · 1aa5a521
      Kathleen Biagas authored
      Use double for offset when calculating bounding box, and don't
      use ceiling, to prevent an extra row of pixels between lines in
      multi-line text.
      
      Change-Id: Ifd660e382cf8b946e23b58493c765d229d716652
      1aa5a521
  31. 20 Mar, 2013 1 commit
  32. 13 Mar, 2013 1 commit
    • David Gobbi's avatar
      ENH: Add math function for nearest power of two. · 93f35796
      David Gobbi authored
      There are several places in VTK where the bounding power of two is
      computed.  It is safer to centralize the code.  Use an O(log(N))
      algorithm instead of the O(N) algorithm that was used before.
      
      Change-Id: Idef2522d5a9357863837959975c0592751971010
      93f35796
  33. 08 Mar, 2013 2 commits
  34. 18 Dec, 2012 1 commit
  35. 13 Dec, 2012 1 commit