HISE Logo Forum
    • Categories
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Bug Reports
    2 Posts 1 Posters 298 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      andioak
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • A
        andioak
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        52

        Online

        1.7k

        Users

        11.7k

        Topics

        102.1k

        Posts