golang/go

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

Open

#60.501 aperta il 30 mag 2023

Vedi su GitHub
 (1 commento) (3 reazioni) (0 assegnatari)Go (19.008 fork)batch import
DocumentationNeedsInvestigationhelp wanted

Metriche repository

Star
 (133.883 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor