Menu

#1456 Font fallback support

Initial
closed
nobody
Scintilla (412)
5
2024-04-18
2022-10-10
Xen Kuo
No

Will Scintilla have a plan to support the font fallback feature? I've did some document check, seems it isn't supported now.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2022-10-10
     
  • Neil Hodgson

    Neil Hodgson - 2022-10-10

    What exactly do you mean by "font fallback"? How does this differ from the platform's font matching? Which platform are you using?

     
    • Xen Kuo

      Xen Kuo - 2024-04-05

      Hi Neil, sorry for the late response.
      I think the "font fallback" is a general concept in web development. For example, I can set multiple font types to an application, like font type A and font type B, then a symbol is not included in type A, the application will render it using type B, this is the "font fallback" I mentioned.

      If type B doesn't include it as well, then fallback to platform's font. Just sometimes the platform matched font is not the one user preferred, so the application level font fallback is better.

      This is not platform dependent.

       
      • Neil Hodgson

        Neil Hodgson - 2024-04-18

        The implementation is platform dependent as it depends on detecting font absence and high level font APIs commonly 'pretend' that every font request succeeds by substituting a font that is available.

        For example, this Win32 code returns S_OK producing a valid pTextFormat despite there being no font called "Xen Kuo" on the system.

        pIDWriteFactory->CreateTextFormat(
            L"Xen Kuo",
            nullptr,
            DWRITE_FONT_WEIGHT_NORMAL,
            DWRITE_FONT_STYLE_NORMAL,
            DWRITE_FONT_STRETCH_NORMAL,
            13.3,
            L"en-us",
            &pTextFormat);
        
         
  • Neil Hodgson

    Neil Hodgson - 2022-12-01
    • status: open --> closed
     
  • Neil Hodgson

    Neil Hodgson - 2022-12-01

    Closing as incomplete.

     

Log in to post a comment.

MongoDB Logo MongoDB