Skip to content

Returning the color on PDF::Inspector::Text#font_settings #33

@juan-ki

Description

@juan-ki

When calling PDF::Inspector::Text#font_settings, it returns an array of objects with font name and size. I’d like to add the color of the text as well. From looking at the code, it seems these attributes are set here:

      def set_text_font_and_size(*params)
        @state.set_text_font_and_size(*params)
        @font_settings << { name: @fonts[params[0]], size: params[1] }
      end

If you agree that this would be a good addition, could you please advise on where to start in order to add this parameter?, I’d be happy to collaborate on a PR for this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions