Apache OpenOffice (AOO) Bugzilla – Issue 124122
CoreText: Emulate bold for fonts that do not provide bold themselves
Last modified: 2022-10-28 12:54:27 UTC
A couple of fonts don't provide bold typefaces themselves. Emulating boldness using their regular version can give a reasonable approximation and it allows to distinguish texts that only differ in their "weight" attribute.
The CoreText string attribute kCTStrokeWidthAttributeName looks like a good candidate to accomplish such an emulation. It's been available since OSX 10.6, so it is covered in our new platform baseline.
Created attachment 82412 [details] test-document with Andale Mono that doesn't provide Bold styles
"hdu" committed SVN revision 1562059 into trunk: #i124122# emulate bold font weights for CoreText if needed
Fixed with the commit above. Using the weight ratio of requested vs. available font allows the emulation of all bold font weights (semibold, bold ultra bold and black).