-[UIFont systemFontOfSize:] and -[UIFont systemFontOfSize:weight:] may return different UIFont instances backed by different underlying fonts (e.g. .SFUI-Regular vs .SFUI-Semibold) depending on whether the system-level Bold Text accessibility setting is enabled. Therefore, we also need to invalidate the font cache when Bold Text setting changes, similar to how we handle the Dynamic Type setting change.
-[UIFont systemFontOfSize:] and -[UIFont systemFontOfSize:weight:] may return different UIFont instances backed by different underlying fonts (e.g. .SFUI-Regular vs .SFUI-Semibold) depending on whether the system-level Bold Text accessibility setting is enabled. Therefore, we also need to invalidate the font cache when Bold Text setting changes, similar to how we handle the Dynamic Type setting change.

PiperOrigin-RevId: 453986099

material-components/material-components-ios,material-components/material-components-ios,material-components/material-components-ios,material-components/material-components-ios,material-components/material-components-ios