Source File
aat_layout_trak.go
Belonging Package
github.com/go-text/typesetting/harfbuzz
package harfbuzz// https://developer.apple.com/documentation/coretext/1508745-ctfontcreatewithgraphicsfontconst coretextDefaultFontSize = 12.func ( *Font) ( float32) Position {:= .Ptemif <= 0. {= coretextDefaultFontSize}:= .face.Trak.Horiz.GetTracking(, )return .emScalefX()}func ( *Font) ( float32) Position {:= .Ptemif <= 0. {= coretextDefaultFontSize}:= .face.Trak.Vert.GetTracking(, )return .emScalefY()}// track default to 0func ( *aatApplyContext) ( float32) {:= .font.Ptemif <= 0. {// https://developer.apple.com/documentation/coretext/1508745-ctfontcreatewithgraphicsfont= coretextDefaultFontSize}:= .bufferif .Props.Direction.isHorizontal() {:= .font.getHTracking(), := .graphemesIterator()for , := .next(); < ; , _ = .next() {.Pos[].XAdvance +=}} else {:= .font.getVTracking(), := .graphemesIterator()for , := .next(); < ; , _ = .next() {.Pos[].YAdvance +=}}}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |