you can just make up things
16 year!
ο£Ώ unrelated. I'm here for bugs.
β https://cryptoswift.io β¨οΈ TextKit certified expert @ https://goodnotes.com by day
Get https://notepadexe.com - developer playground.
Text editor implementer by night https://github.com/krzyzanowskim/STTextView
| github | https://github.com/krzyzanowskim |
| Bluesky | https://bsky.app/profile/krzyzanowskim.com |
| Notepad.exe | https://NotepadExe.com |
| Commander | https://TheCommander.app |
you can just make up things
16 year!
Work with SwiftPM without #Xcode and run on Mac and Linux with https://notepadexe.com #swift #swiftlang #macdev #iosdev
The fact that we are *not* seeing wildly improving software all around us tells us everything we need to know.
There is no flourishing of value delivery, new product categories, more needs being satisfied better. Itβs the opposite.
All we are seeing is decreases in quality, because π code π creation π is not π the problem.
one may naively think: font provide all the metrics needed to correctly calculate the size. WRONG. It provides some of information, the other part is either deducted, hardcoded or yoyo. Example, Helvetica at one point ha
lineHeight = ascent + ((ascent + descent) * 0.15) + descent, then there's language aware adjustment on top of that.
I can't make this shit up.
The text "Line Height" calculation on iOS/Mac is THE rocket science π¬
There is literally one public method that can calculate it right: `NSLayoutManager.defaultLineHeight(for:)`. The logic behind it does not consistently match CoreText
CTLine, CTFramesetter, or a plain (ascent + descent + leading) calculation πΏ
Literal rocket science build on top of years of assumptions, mistakes, historic use. why? becasue reasons. magic delta values depends on the font name/style/size.