QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Variables
qgstextdocumentmetrics.cpp File Reference
#include "qgstextdocumentmetrics.h"
#include "qgis.h"
#include "qgsstringutils.h"
#include "qgstextblock.h"
#include "qgstextfragment.h"
#include "qgstextformat.h"
#include "qgstextdocument.h"
#include "qgsrendercontext.h"
#include <QFontMetricsF>
Include dependency graph for qgstextdocumentmetrics.cpp:

Go to the source code of this file.

Variables

constexpr double SUBSCRIPT_VERTICAL_BASELINE_ADJUSTMENT_FACTOR = 1.0 / 6.0
 
constexpr double SUPERSCRIPT_SUBSCRIPT_FONT_SIZE_SCALING_FACTOR = 2.0 / 3.0
 
constexpr double SUPERSCRIPT_VERTICAL_BASELINE_ADJUSTMENT_FACTOR = 0.5
 

Variable Documentation

◆ SUBSCRIPT_VERTICAL_BASELINE_ADJUSTMENT_FACTOR

constexpr double SUBSCRIPT_VERTICAL_BASELINE_ADJUSTMENT_FACTOR = 1.0 / 6.0
constexpr

Definition at line 31 of file qgstextdocumentmetrics.cpp.

◆ SUPERSCRIPT_SUBSCRIPT_FONT_SIZE_SCALING_FACTOR

constexpr double SUPERSCRIPT_SUBSCRIPT_FONT_SIZE_SCALING_FACTOR = 2.0 / 3.0
constexpr

Definition at line 27 of file qgstextdocumentmetrics.cpp.

◆ SUPERSCRIPT_VERTICAL_BASELINE_ADJUSTMENT_FACTOR

constexpr double SUPERSCRIPT_VERTICAL_BASELINE_ADJUSTMENT_FACTOR = 0.5
constexpr

Definition at line 30 of file qgstextdocumentmetrics.cpp.