MCPcopy Create free account
hub / github.com/SpartanJ/eepp / isMonospaceLine

Method isMonospaceLine

src/eepp/ui/uicodeeditor.cpp:5621–5627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5619}
5620
5621bool UICodeEditor::isMonospaceLine( Int64 lineIndex ) const {
5622 return mFont && ( ( mFont->isMonospace() &&
5623 ( !Text::TextShaperEnabled || mDoc->line( lineIndex ).isAscii() ) ) ||
5624 ( mFont->getType() == FontType::TTF &&
5625 static_cast<FontTrueType*>( mFont )->isIdentifiedAsMonospace() &&
5626 mDoc->line( lineIndex ).isAscii() ) );
5627}
5628
5629Float UICodeEditor::editorWidth() const {
5630 return eemax( 0.f, mSize.getWidth() - mPaddingPx.Left - mPaddingPx.Right );

Callers 1

getLineWidthMethod · 0.95

Calls 4

isAsciiMethod · 0.80
isMonospaceMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected