1. 11 Nov, 2020 6 commits
    • Jesse Doyle's avatar
      Merge pull request #46 from jessedoyle/gh-45 · 49c26ad7
      Jesse Doyle authored
      feat(fonts) - Configuration of Font Directory
      49c26ad7
    • Jesse Doyle's avatar
      feat(fonts) - Configuration of Font Directory · b7fe6605
      Jesse Doyle authored
      resolves #45
      
      * Introduce a standard gem configuration interface that allows
        users to set an alternate font directory as follows:
      
      ```ruby
      Prawn::Icon.configure do |config|
        config.font_directory = '/foo/bar'
      end
      ```
      
      * Formally deprecate the `FONTDIR` and `SHIMS` constants and replace
        with memoized class variables. We're only keeping them around so
        as to not release a breaking change.
      * Fix a bug with directory pathing in some environments because the
        path was built assuming consistent namespacing. We now use
        `Gem::Specification#full_gem_path` to handle the inconsistencies.
      * Disable the rubocop `Layout/MultilineMethodCallIndentation` check
        as it adds more whitespace than I prefer.
      b7fe6605
    • Jesse Doyle's avatar
      Merge pull request #47 from jessedoyle/fa-5.15.0 · a7f55bdb
      Jesse Doyle authored
      feat(fontawesome): Update FontAwesome to 5.15.0
      a7f55bdb
    • Jesse Doyle's avatar
      feat(fontawesome): Update FontAwesome to 5.15.0 · fa704db4
      Jesse Doyle authored
      * Update the fontawesome fonts and legend files from
        version 5.11.2 to 5.15.1.
      * See FontAwesome's [upgrade guide](https://github.com/FortAwesome/Font-Awesome/blob/master/UPGRADING.md) for more details.
      fa704db4
    • Jesse Doyle's avatar
      Merge pull request #50 from jessedoyle/gh-49 · 41267e0c
      Jesse Doyle authored
      fix(inline): Inline Icon Page Wrapping
      41267e0c
    • Jesse Doyle's avatar
      fix(inline): Start New Page When Cursor is Negative · 9126e143
      Jesse Doyle authored
      * Previously inline formatted icons would not correctly start a
        new page when necessary, so the formatted text box would render
        at a cursor position that made it invisible.
      * Add a new test case for the bug outlined in #49.
      * Adjust `#inline_icon` to directly call Prawn's `#formatted_text`
        method with the transformed inline formatted string.
      * The previous implementation of `#inline_icon` went to great
        lengths to position the formatted text box without rendering to
        the document, but Prawn's formatted text box wrapping logic may
        require multiple `Prawn::Text::Formatted::Box` instances (around
        page breaks).
      * Due to this change `#inline_icon` calls now return `nil` and
        content is rendered immediately to the document.
      * This change also means that `#icon` calls will return `nil`
        when using the `inline_format: true` parameter.
      * Add a `#formatted_icon_box` method that retains the previous
        inline icon behaviour.
      * Allow `#formatted_icon_box` to accept the `:at`, `:x` and `:y`
        absolute positioning parameters (Thanks @navisnspm!).
      * Transition to `Pdf::Inspector` to make positioning decisions
        in specs. This is a more comprehensive test expectation.
      * Change the deprecation message for the FontAwesome 4
        shim to include a future 4.X version as the compatibility
        layer will be maintained for at least another major version.
      * Update major version to 3.0.0 as the return values have
        changed in the public API `#icon` and `#inline_icon` methods.
      9126e143
  2. 30 Mar, 2020 2 commits
  3. 05 Oct, 2019 2 commits
  4. 27 May, 2019 1 commit
  5. 26 May, 2019 1 commit
  6. 08 Oct, 2018 2 commits
  7. 21 May, 2018 2 commits
    • Jesse Doyle's avatar
      Merge pull request #35 from jessedoyle/shim-compat · 9048062a
      Jesse Doyle authored
      Update FontAwesome to 5.0.13
      9048062a
    • Jesse Doyle's avatar
      Update FontAwesome to 5.0.13 · 4b317473
      Jesse Doyle authored
      * Move out shim configuration into a `.yml` file located
        inside the `data/fonts/fa4/shims.yml` file.
      * Update FontAwesome TTF files and legend files from 5.0.8
        to 5.0.13.
      * Add additional compatibility shims that were missing for
        some icons from FontAwesome 4. This version release is
        now fully backwards-compatible with all icon specifiers
        present in FontAwesome 4 (via version `1.4.0` of this gem).
      * Fix a bug in the FontAwesome converter tool by properly
        requiring `fileutils` before execution.
      * Remove ruby 2.2.X from the travis build as `prawn` master
        has removed compatibility with this version of Ruby
        (see: https://github.com/prawnpdf/prawn/pull/1060).
      * Bump the version of jruby when on the travis builds to
        match prawn master.
      * Remove `rbx` from the travis builds. They always error
        and require more time to build.
      4b317473
  8. 02 Apr, 2018 2 commits
    • Jesse Doyle's avatar
      Merge pull request #34 from jessedoyle/fa-4-compat · 51a84ae4
      Jesse Doyle authored
      2.1.0 - FontAwesome 4 Shim
      51a84ae4
    • Jesse Doyle's avatar
      2.1.0 - FontAwesome 4 Shim · 97c100ed
      Jesse Doyle authored
      * Add a compatibilty class that includes FontAwesome 4
        shim data from the FontAwesome metadata.
      * Effectively rewrite all instances of `fa-*` to their
        appropriate FontAwesome 5 font family.
      * Perform the icon key rewrite at the higest scope possible
        in `Prawn::Icon::Interface` to retain backwards compatibility.
      * Add a deprecation warning whenever `fa-*` references
        are encountered.
      * Disable the `Layout/IndentHeredoc` rubocop rule to not
        have to include further dependencies for heredoc
        indentation.
      * Bump version to 2.1.0.
      97c100ed
  9. 08 Mar, 2018 2 commits
  10. 12 Sep, 2017 2 commits
  11. 15 Oct, 2016 2 commits
  12. 16 Sep, 2016 1 commit
  13. 12 Sep, 2016 1 commit
    • Jesse Doyle's avatar
      Prawn::Icon::Base [#27] · 618a7016
      Jesse Doyle authored
      - Bump version to v1.2.0.
      - Update FontAwesome from v4.5.0 to v4.6.3.
      - Refactor spec files to remove duplication using `let` blocks.
      - Break internal dependencies to `Prawn::Icon::Base` to allow selective code requires.
        (see issue #27).
      - Introduce `Prawn::Icon::Errors` to contain internal exception classes.
      - `Prawn::Icon::FONTDIR` is now an alias to `Prawn::Icon::Base::FONTDIR` for compatibilty.
      - Add basic spec files for `Prawn::Icon::Base` and separate exception classes.
      - Minor backwards-compatible code refactor of `Prawn::Icon::FontData` for readability.
      - Point legend rake task code to `Prawn::Icon::Base::FONTDIR`.
      - Add a spec to test inline_icon with final_gap: false to achieve 100% coverage.
      618a7016
  14. 25 Jun, 2016 3 commits
    • Jesse Doyle's avatar
      Merge pull request #25 from jessedoyle/inline-cursor · aed8bcdd
      Jesse Doyle authored
      Fix Inline Icon Render Position
      aed8bcdd
    • Jesse Doyle's avatar
      Update Travis Config · 17218cd8
      Jesse Doyle authored
      * Remove extra 2.1.* ruby versions from Travis.
      * Update Travis config to match (almost) that of Prawn's.
      * Let Travis test against Prawn 2.1.0.
      * Remove unused mocha and simplecov development dependency
        from gemspec.
      17218cd8
    • Jesse Doyle's avatar
      Fix Inline Icon Render Position · f5e7121c
      Jesse Doyle authored
      * Break out line gap and leading calculation into its own private
        method for Text::Formatted::Box's that are used for icons.
      * Add spec to test for the correct inline icon render position (#24).
      * Update version to 1.1.1.
      * Update Changelog.
      f5e7121c
  15. 23 Jun, 2016 1 commit
    • Jesse Doyle's avatar
      [skip ci] Fix #24 - Inline Icons and Cursor · 03f097c1
      Jesse Doyle authored
      * Modify `inline_icon` method to render at the cursor position
        and perform a dry_run render of the Text::Formatted::Box to
        determine the height of the box.
      * The y position is then moved down the height of the text box
        (with line gap and leading if applicable).
      03f097c1
  16. 17 Jun, 2016 2 commits
  17. 17 Mar, 2016 2 commits
    • Jesse Doyle's avatar
      Merge pull request #22 from jessedoyle/fa-4-5 · 925dd62e
      Jesse Doyle authored
      Version 1.1.0
      925dd62e
    • Jesse Doyle's avatar
      Release Version 1.1.0 · 05248758
      Jesse Doyle authored
      * upgrade font-awesome to v4.5.0
      * refactor specs and update development dependencies
      * update changelog and bump version
      * disable a few rubocop checks
      * fix unnecessary spacing in parser.rb
      * require a new version of bundler on travis before install
      05248758
  18. 06 Nov, 2015 2 commits
  19. 10 Sep, 2015 3 commits
  20. 09 Sep, 2015 1 commit