Skip to content

x/image/font: the term 'dot' in the comments is confusing #60501

@hajimehoshi

Description

@hajimehoshi

In the comments of the x/image/font package, the term 'dot' is used as the origin position of rendering. I thought the 'dot' indicated the position of the glyph of the period . (e.g. the center of the period glyph would be (0, 0)), but actually this was not with most fonts. Apparently, the dot indicates the origin position in this figure: https://developer.apple.com/library/archive/documentation/TextFonts/Conceptual/CocoaTextArchitecture/Art/glyphterms_2x.png Is the 'dot' a usual term for typography? If not, I hope the comments would be updated to clarify the things.

/CC @nigeltao

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.help wanted

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions