vcl/quartz/ctfonts.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 8da2af99cc205d7c79cd119ccb32a5f3de4ea204 Author: Chris Sherlock <chris.sherloc...@gmail.com> AuthorDate: Sun Oct 10 03:45:37 2021 +1100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Oct 12 21:36:10 2021 +0200
tdf#144757 - fixed fonts not shown in font list When in font options, the Fonts in "Font Setting for HTML, Basic and SQL Sources" were not showing any fixed (non-proportional) fonts in the list when "Non-proportional fonts only" was ticked. The reason this was occuring was because we were not populating the fixed font attribute when getting the CT font descriptor. Change-Id: I06127ac48bd0f3bc9b70217b36bbf584a1b0fdc2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123316 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins (cherry picked from commit d389a54e64accc3f46c1a646f947e9af9badd08e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123412 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index 56408f4f9891..a01216a99304 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -376,6 +376,9 @@ FontAttributes DevFontFromCTFontDescriptor( CTFontDescriptorRef pFD, bool* bFont { CFNumberGetValue( pSymbolNum, kCFNumberSInt64Type, &nSymbolTrait ); rDFA.SetSymbolFlag( (nSymbolTrait & kCTFontClassMaskTrait) == kCTFontSymbolicClass ); + + if (nSymbolTrait & kCTFontMonoSpaceTrait) + rDFA.SetPitch(PITCH_FIXED); } // get the font weight