mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
LookAndFeel: Allow specifying a default typeface metrics kind to use
This commit is contained in:
parent
fa81badb30
commit
4533077b75
26 changed files with 82 additions and 60 deletions
|
|
@ -467,7 +467,7 @@ CodeEditorComponent::CodeEditorComponent (CodeDocument& doc, CodeTokeniser* cons
|
|||
addAndMakeVisible (horizontalScrollBar);
|
||||
horizontalScrollBar.setSingleStepSize (1.0);
|
||||
|
||||
Font f (FontOptions { 12.0f });
|
||||
Font f (withDefaultMetrics (FontOptions { 12.0f }));
|
||||
f.setTypefaceName (Font::getDefaultMonospacedFontName());
|
||||
setFont (f);
|
||||
|
||||
|
|
|
|||
|
|
@ -416,7 +416,7 @@ private:
|
|||
//==============================================================================
|
||||
CodeDocument& document;
|
||||
|
||||
Font font { FontOptions{} };
|
||||
Font font { withDefaultMetrics (FontOptions{}) };
|
||||
int firstLineOnScreen = 0, spacesPerTab = 4;
|
||||
float charWidth = 0;
|
||||
int lineHeight = 0, linesOnScreen = 0, columnsOnScreen = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue