| Newsgroups |
gmane.comp.lib.scintilla.devel |
| Message-ID |
<[email protected]> |
In case anyone has the same problem I did, I was passing an NSFont's
fontName (e.g. Menlo-Regular) to StyleSetFont() when I should've been using
familyName (e.g. Menlo). The old QuartzFont class was OK with a fontName
and you could argue I should've always been passing familyName.
On Thursday, February 13, 2025 at 10:27:41 AM UTC-6 [email protected]
wrote:
> OK, I was able to revert the code for creating a font style from a name in
> QuartzFont to the version in 5.5.0 and setting boldness and italic work
> again. I will file a bug.
>
> On Thursday, February 13, 2025 at 10:21:05 AM UTC-6 [email protected]
> wrote:
>
>> I'm on 5.5.4 and I just noticed that setting the boldness and italic for
>> a style has no effect on macOS. It works just fine on Windows and GTK
>> though. I tried weight and stretch as well but they had no effect either.
>> Font name, color, size, and underline all work just fine. I tried an
>> earlier build where I was still using 3.3.1 and setting the font style
>> works just fine. I upgraded from 3.3.1 straight to 5.5.4 so I don't know if
>> it all worked on an earlier 5 release. Can anyone else verify this?
>>
>> I've set breakpoints within Editor::StyleSetMessage() and verified that
>> the correct values are being passed in. I intentionally set all the styles
>> to bold and italic and verified that bold and italic are set in
>> QuartzFont(). I did notice that the code has changed in the QuartzFont
>> class for how to specify weight, stretch, and italics from the code in
>> 5.5.0 so I'm going to try to revert some of that code to see if the old
>> method works.
>>
>
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/d2e578f8-18a4-4f61-a427-89fb04a662f9n%40googlegroups.com.