Use locl OpenType feature?



  • I am testing OT features in DrawBot, and I’m noticing that the locl feature does not seem to be supported. For a given font with locl feature included, it is not listed in listOpenTypeFeatures(my_font), also language tagging does not seem to affect the text in that regard.

    Would it be possible to access the locl feature somehow?


  • admin

    use language('nl') to switch between languages, as DrawBot is typesetting environment...

    font('/Users/frederik/Downloads/source-code-pro-2.030R-ro-1.050R-it/OTF/SourceCodePro-Regular.otf')
    
    char = "б"
    
    fontSize(200)
    text(char, (10, 100))
    
    language("sr")
    text(char, (150, 100))
    

    Screen Shot 2019-02-15 at 10.44.12.png