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
|
|
@ -361,7 +361,7 @@ struct GraphEditorPanel::PluginComponent final : public Component,
|
|||
|
||||
w = jmax (w, (jmax (numIns, numOuts) + 1) * 20);
|
||||
|
||||
const int textWidth = font.getStringWidth (processor.getName());
|
||||
const auto textWidth = GlyphArrangement::getStringWidthInt (font, processor.getName());
|
||||
w = jmax (w, 16 + jmin (textWidth, 300));
|
||||
if (textWidth > 300)
|
||||
h = 100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue