replace "[<rec> newFont:<font> size:<size> style:<style> matrix:<matrix>]" with "[<rec> fontWithName:<font> size:<size>]"
where "<matrix>" isOneOf {
"NSFontIdentityMatrix",
"NSFontFlippedMatrix"
}
replace "[<rec> newFont:<font> size:<size> style:<style> matrix:<matrix>]" with "[<rec> fontWithName:<font> matrix:<matrix>]"
warning "FontConversion: 'fontWithName:matrix:' used to be 'newFont:size:style:matrix:'. In NSFont, size or matrix may be specified, but not both. Size was: <size>. Either factor the size into the matrix or, if the matrix is a unit matrix, use 'fontWithName:size:'"
replace "[<rec> newFont:<font> size:<size> matrix:<matrix>]" with "[<rec> fontWithName:<font> size:<size>]"
where "<matrix>" isOneOf {
"NSFontIdentityMatrix",
"NSFontFlippedMatrix"
}
replace "[<rec> newFont:<font> size:<size> matrix:<matrix>]" with "[<rec> fontWithName:<font> matrix:<matrix>]"
warning "FontConversion: 'fontWithName:matrix:' used to be 'newFont:size:matrix:'; in NSFont, size or matrix may be specified, but not both. Size was: <size>. Either factor the size into the matrix or, if the matrix is an identity matrix, use 'fontWithName:size:'. Note: NSFonts correctly orient themselves in accordance with the focused view, so flipped matrices are not required."
replacemethod "newFont:size:" with "fontWithName:size:"
replace "[<rec> userFontOfSize:<size> matrix:<matrix>]" with "[<rec> userFontOfSize:<size>]"
where "<matrix>" isOneOf {
"NSFontIdentityMatrix",
"NSFontFlippedMatrix"
}
replace "[<rec> userFixedPitchFontOfSize:<size> matrix:<matrix>]" with "[<rec> userFixedPitchFontOfSize:<size>]"
where "<matrix>" isOneOf {
"NSFontIdentityMatrix",
"NSFontFlippedMatrix"
}
replace "[<rec> systemFontOfSize:<size> matrix:<matrix>]" with "[<rec> systemFontOfSize:<size>]"
where "<matrix>" isOneOf {
"NSFontIdentityMatrix",
"NSFontFlippedMatrix"
}
replace "[<rec> boldSystemFontOfSize:<size> matrix:<matrix>]" with "[<rec> boldSystemFontOfSize:<size>]"
where "<matrix>" isOneOf {
"NSFontIdentityMatrix",
"NSFontFlippedMatrix"
}
replace "[<rec> <sel>:<size> matrix:<matrix>]" with "[<rec> <sel>:<size>]"
warning "FontConversion: <sel>: used to be <sel>:matrix:; in NSFont, a matrix cannot be specified for this method. If a non-unit matrix is required, use 'fontName' to extract the name, and then create that font with '+fontWithName:matrix:'; note: NSFonts correctly orient themselves in accordance with the focused view, so flipped matrices are not required"
where "<sel>" isOneOf {
"userFontOfSize",
"userFixedPitchFontOfSize"
"systemFontOfSize",
"boldSystemFontOfSize"
}
/*********** FontConversion: name changes ***********/