MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / addText

Method addText

source/MRIOExtras/MRPdf.cpp:346–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void Pdf::addText( const std::string& text, bool isTitle /*= false*/ )
347{
348 TextParams params = isTitle ? TextParams{ .fontName = params_.defaultFont, .fontSize = params_.titleSize, .alignment = AlignmentHorizontal::Center } :
349 TextParams{.fontName = params_.defaultFont, .fontSize = params_.textSize};
350
351 addText( text, params );
352}
353
354void Pdf::addText(const std::string& text, const TextParams& params )
355{

Callers 1

TESTFunction · 0.45

Calls 3

getTextHeightFunction · 0.85
sizeMethod · 0.45
includeMethod · 0.45

Tested by 1

TESTFunction · 0.36