| 344 | } |
| 345 | |
| 346 | void 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 | |
| 354 | void Pdf::addText(const std::string& text, const TextParams& params ) |
| 355 | { |