freenode/#shirakumo - IRC Chatlog
Search
14:04:30
Shinmera
Ah it does exist, but in another enum. https://developer.apple.com/documentation/corefoundation/cfstringbuiltinencodings?language=objc
14:04:31
Colleen
developer.apple.com/documen... Website (HTML), Title: CFStringBuiltInEncodings - Core Foundation | Apple Developer Documentation
14:24:57
Shinmera
https://developer.apple.com/documentation/coretext/1508984-ctfontcopyattribute?language=objc
14:24:58
Colleen
developer.apple.com/documen... Website (HTML), Title: CTFontCopyAttribute - Core Text | Apple Developer Documentation
14:25:07
Shinmera
"Refer to the attribute definitions documentation for information as to how each attribute is packaged as a CFType.
14:56:32
Shinmera
Also fantastic: their api for getting font traits (weight, width, slant) returns these properties "normalised" in a -1 to +1 range, but there's no information on what the typicaly values of "thin", "light", "bold", etc would map to for the weight, for instance.
18:17:07
Shinmera
Again, second pair of eyes appreciated: https://github.com/Shinmera/font-discovery/blob/master/macos.lisp#L145
18:17:08
Colleen
github.com/Shinmera/font-di... Website (HTML), Title: font-discovery/macos.lisp at master · Shinmera/font-discovery · GitHub
18:18:45
Shinmera
Always fails in translate-descriptor -> with-attribute (traits triats-attribute) -> font-descriptor-copy-attribute.
18:19:09
Shinmera
Even has a fun :INVALID-VALUE-FOR-UNESCAPED-REGISTER-STORAGE as the value for a local in the last lisp frame
18:26:04
Shinmera
okey, apparently I'm only supposed to release the array I get back, not all the instances inside the array