Skip to content

tests: add NSFontDescriptor tests#502

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/nsfontdescriptor
Open

tests: add NSFontDescriptor tests#502
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/nsfontdescriptor

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

Coverage for NSFontDescriptor: the attribute round-trip and objectForKey:, the pointSize, postscriptName (including the space stripping) and matrix extractors, fontDescriptorWithSize:, fontDescriptorByAddingAttributes: and fontDescriptorWithFamily:.

Checked against Cocoa on macOS. The symbolic traits and the postscript name of an attribute-less descriptor depend on resolving the descriptor against the font system, which this class does not do, so they are left out. Everything covered here matches, so this is tests only.

Cover the attribute round-trip, the point size, postscript name and
matrix extractors, and the descriptor derivation methods. The symbolic
traits and the postscript name of an attribute-less descriptor depend on
font resolution and are not covered.
@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant