mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Font: Deprecate getStringWidth and getGlyphPositions
This commit is contained in:
parent
eddedc2d13
commit
29213e07a1
21 changed files with 179 additions and 58 deletions
|
|
@ -352,7 +352,7 @@ public:
|
|||
colourLabel.setColour (Label::textWhenEditingColourId, textColour);
|
||||
colourLabel.setText (currentColour.toDisplayString ((owner.flags & showAlphaChannel) != 0), dontSendNotification);
|
||||
|
||||
labelWidth = labelFont.getStringWidth (colourLabel.getText());
|
||||
labelWidth = GlyphArrangement::getStringWidthInt (labelFont, colourLabel.getText());
|
||||
|
||||
repaint();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue