Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextShape_p.h File Reference
#include "KoSvgTextShape.h"
#include "KoSvgText.h"
#include "KoSvgTextContentElement.h"
#include "KoCssTextUtils.h"
#include <kis_assert.h>
#include <KisForest.h>
#include <QFont>
#include <QImage>
#include <QLineF>
#include <QPainterPath>
#include <QPointF>
#include <QRectF>
#include <QVector>
#include <QtMath>
#include <variant>
#include <ft2build.h>

Go to the source code of this file.

Classes

struct  Glyph::Bitmap
 
struct  CharacterResult
 
struct  Glyph::ColorLayers
 
struct  CursorInfo
 
struct  CursorPos
 
class  KoSvgTextShape
 
struct  LineBox
 The LineBox struct. More...
 
struct  LineChunk
 
struct  Glyph::Outline
 
struct  SubChunk
 

Namespaces

namespace  Glyph
 

Typedefs

using Glyph::Variant = std::variant<std::monostate, Outline, Bitmap, ColorLayers>
 

Enumerations

enum class  BreakType { NoBreak , SoftBreak , HardBreak }
 
enum class  LineEdgeBehaviour { NoChange , Collapse , ForceHang , ConditionallyHang }
 

Variables

constexpr qreal SHAPE_PRECISION = 1e-6
 Value that indicates the precision for testing coordinates for text-in-shape layout.
 

Enumeration Type Documentation

◆ BreakType

enum class BreakType
strong
Enumerator
NoBreak 
SoftBreak 
HardBreak 

Definition at line 40 of file KoSvgTextShape_p.h.

40 {
41 NoBreak,
44};

◆ LineEdgeBehaviour

enum class LineEdgeBehaviour
strong
Enumerator
NoChange 

Do nothing special.

Collapse 

Collapse if first or last in line.

ForceHang 

Force hanging at the start or end of a line, never measured for justification.

ConditionallyHang 

Only hang if no space otherwise, only measured for justification if not hanging.

Definition at line 46 of file KoSvgTextShape_p.h.

46 {
47 NoChange,
48 Collapse,
49 ForceHang,
51};
@ ConditionallyHang
Only hang if no space otherwise, only measured for justification if not hanging.
@ Collapse
Collapse if first or last in line.
@ ForceHang
Force hanging at the start or end of a line, never measured for justification.
@ NoChange
Do nothing special.

Variable Documentation

◆ SHAPE_PRECISION

constexpr qreal SHAPE_PRECISION = 1e-6
constexpr

Value that indicates the precision for testing coordinates for text-in-shape layout.

Definition at line 35 of file KoSvgTextShape_p.h.