Setting fonts using .set("Font", "my-font") on midi tiles render error message



  • I am trying to update my fonts using:

    my_label.set("fontName", "my-font"); // works fine for labels using 'fontName' property.
    

    But when I try Font property on tiles, like so: my_tile.set("Font", "Arial") it gives an error message:
    :! the property does not exist

    I tried using fontName for tiles, but they give error messages too. I actually get the result I want, I think, at least it seems so. Perhaps the issue is just the error message api?

    (macos, scriptnode branch 2020-08-20)



  • Sorry, my bad. The issue I had was about another property, namely the fontSize property of the labels, that was with initial capitalized F, as FontSize in tiles.

    @Christoph-Hart Perhaps a good change for HISE 3.0? Move those to all-the-same across all object types.

    Anyways, solved.


Log in to reply
 

14
Online

1.1k
Users

3.8k
Topics

33.3k
Posts