Skip to content

PR #1482 added a non working Map.get request to TrueTypeFont.getMetricsTT #1553

@lgemeinhardt

Description

@lgemeinhardt

PR #1482 added a non working Map.get request to TrueTypeFont.getMetricsTT, because "cmap05" has String keys, but the get tries a int. In the result, it could only return null.

Found by Eclipse IDE (Unlikely argument type int for get(Object) on a Map<String,int[]>) and SpotBugs (GC_UNRELATED_TYPES - Integer is incompatible with expected argument type String in org.openpdf.text.pdf.TrueTypeFont.getMetricsTT(int)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions