HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. cynthasiser
    3. Topics
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 32
    • Groups 0

    Topics

    • C

      g.getStringWidth is broken in 4.0.0 and g.setFont will not display Oxygen

      Watching Ignoring Scheduled Pinned Locked Moved Bug Reports
      15
      0 Votes
      15 Posts
      360 Views
      C

      @Lindon That makes sense, thanks!

      Loading fonts seems to have fixed the issue with g.getStringWidth() in 4.0.0 too.

      It's weird that it worked correctly even on unloaded fonts in 3.6.2, but in 4.0.0 using it on unloaded fonts gives you an incorrect pixel width. It's like the Windows fonts were loaded by default in 3.6.2, but in 4.0.0 they're loaded wrong. Could that difference in behaviour between versions indicate some kind of problem?

      And is it worth adding a warning to users (whether in the software or in the documentation) when they use g.setFont() on unloaded fonts if the intention is that fonts should always be loaded in code? To me, the font loading part in the documentation reads as an option for adding your own fonts rather than a necessary step. I think I just read the correct syntax for setting a font, tried it and it worked, so I never had an indication that anything was wrong until now.

      Either way, it looks like neither method is bugged, they just misbehave when you don't load fonts properly, so problem solved!

    • C

      Inaccuracy with g.getStringWidth()?

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Scripting
      12
      0 Votes
      12 Posts
      398 Views
      d.healeyD

      Build HISE from source, use the develop branch.

    • C

      Scaling text without squashing it horizontally

      Watching Ignoring Scheduled Pinned Locked Moved Solved General Questions
      13
      0 Votes
      13 Posts
      372 Views
      mmprodM

      @d-healey awesome, thank you

    • C

      Experiencing crashes with intensive paint routine. What can I do to fix this?

      Watching Ignoring Scheduled Pinned Locked Moved Solved Scripting paint routine crash
      8
      0 Votes
      8 Posts
      183 Views
      d.healeyD

      @cynthasiser Glad we solved it :)

    • C

      Change Key Width using code

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      4
      0 Votes
      4 Posts
      127 Views
      O

      @d-healey said in Change Key Width using code:

      Link Preview Image Updating FloatingTile Content Data

      Here's an example that sets the lowest key of the keyboard floating tile. First we get the Data property, which is a string. We convert this to an object usi...

      favicon

      Forum (forum.hise.audio)

      Cheers man! Bit of hunting for that trace(data) technique, but that has helped!

    • C

      Multiple different text colours/formats in one text box?

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved General Questions
      11
      0 Votes
      11 Posts
      442 Views
      ustkU

      Another way is to use a MarkdownRenderer and a panel, but it's not highly customisable.
      So a simple panel with a neat paintRoutine is still a good choice

    • C

      Is there a way to do big calculations without hitting integer overflow?

      Watching Ignoring Scheduled Pinned Locked Moved General Questions
      3
      0 Votes
      3 Posts
      213 Views
      C

      @Lindon Okay, thank you! That's kind of what I'm doing but I guess the problem is I actually need the giant numbers because I'm working with exact integer ratios. I think I've found a better way of approaching the problem though, as I got it working with the smaller approximations and the behaviour wasn't quite what I wanted anyway.