Krita Source Code Documentation
Loading...
Searching...
No Matches
KoOpenTypeFeatureInfo Struct Reference

#include <KoOpenTypeFeatureInfoFactory.h>

Public Types

enum  OpenTypeTable {
  GSUB1 , GSUB2 , GSUB3 , GSUB4 ,
  GSUB5 , GSUB6 , GSUB7 , GSUB8 ,
  GPOS1 , GPOS2 , GPOS3 , GPOS4 ,
  GPOS5 , GPOS6 , GPOS7 , GPOS8 ,
  GPOS9
}
 

Public Member Functions

 KoOpenTypeFeatureInfo ()
 
 KoOpenTypeFeatureInfo (const QLatin1String &tag, const QString &name, const QString &description, const QVector< OpenTypeTable > &tables, const bool glyphPalette=false, const int maxValue=1)
 

Public Attributes

QString description
 Description of the feature.
 
bool glyphPalette {false}
 Whether the feature should be visible in the glyph palette.
 
int maxValue
 The maximum value possible, this is by default 1 (on), but for alternate substitution(gsub 3), it can have more inside the font.
 
QString name
 User-friendly name.
 
QStringList namedParameters
 
QString sample
 Sample of the feature, if any. Only used by CVXX features and retrieved from the font.
 
QVector< OpenTypeTabletables
 Named parameters. Only used by CVXX features and retrieved from the font.
 
QLatin1String tag
 4 char tag.
 

Detailed Description

Definition at line 16 of file KoOpenTypeFeatureInfoFactory.h.

Member Enumeration Documentation

◆ OpenTypeTable

Enumerator
GSUB1 

Single substitution.

GSUB2 

Multiple substitution (1 -> 2)

GSUB3 

Alternate substitution.

GSUB4 

Ligature substitution.

GSUB5 

Contextual substitution.

GSUB6 

Chained Contextual substitution.

GSUB7 

Extension substitution.

GSUB8 

Reverse Chained Contextual substitution.

GPOS1 

Single position adjustment.

GPOS2 

Pair position adjustment.

GPOS3 

Cursive attachment.

GPOS4 

Mark-to-base adjustment.

GPOS5 

Mark-to-ligature adjustment.

GPOS6 

Mark-to-mark adjustment.

GPOS7 

Contextual positioning.

GPOS8 

Chained-Contextual positioning.

GPOS9 

Extension positioning.

Definition at line 18 of file KoOpenTypeFeatureInfoFactory.h.

18 {
19 GSUB1,
20 GSUB2,
21 GSUB3,
22 GSUB4,
23 GSUB5,
24 GSUB6,
25 GSUB7,
26 GSUB8,
27 GPOS1,
28 GPOS2,
29 GPOS3,
30 GPOS4,
31 GPOS5,
32 GPOS6,
33 GPOS7,
34 GPOS8,
35 GPOS9,
36 };
@ GPOS8
Chained-Contextual positioning.
@ GSUB2
Multiple substitution (1 -> 2)
@ GPOS2
Pair position adjustment.
@ GSUB8
Reverse Chained Contextual substitution.
@ GSUB7
Extension substitution.
@ GPOS1
Single position adjustment.
@ GSUB3
Alternate substitution.
@ GPOS7
Contextual positioning.
@ GPOS4
Mark-to-base adjustment.
@ GPOS5
Mark-to-ligature adjustment.
@ GSUB5
Contextual substitution.
@ GPOS6
Mark-to-mark adjustment.
@ GSUB6
Chained Contextual substitution.

Constructor & Destructor Documentation

◆ KoOpenTypeFeatureInfo() [1/2]

KoOpenTypeFeatureInfo::KoOpenTypeFeatureInfo ( )
inline

Definition at line 37 of file KoOpenTypeFeatureInfoFactory.h.

37{}

◆ KoOpenTypeFeatureInfo() [2/2]

KoOpenTypeFeatureInfo::KoOpenTypeFeatureInfo ( const QLatin1String & tag,
const QString & name,
const QString & description,
const QVector< OpenTypeTable > & tables,
const bool glyphPalette = false,
const int maxValue = 1 )
inline

Definition at line 38 of file KoOpenTypeFeatureInfoFactory.h.

44 : tag(tag)
45 , name(name)
47 , tables(tables)
50 {
51 }
QVector< OpenTypeTable > tables
Named parameters. Only used by CVXX features and retrieved from the font.
QString description
Description of the feature.
QString name
User-friendly name.
bool glyphPalette
Whether the feature should be visible in the glyph palette.
int maxValue
The maximum value possible, this is by default 1 (on), but for alternate substitution(gsub 3),...

Member Data Documentation

◆ description

QString KoOpenTypeFeatureInfo::description

Description of the feature.

Definition at line 57 of file KoOpenTypeFeatureInfoFactory.h.

◆ glyphPalette

bool KoOpenTypeFeatureInfo::glyphPalette {false}

Whether the feature should be visible in the glyph palette.

Definition at line 65 of file KoOpenTypeFeatureInfoFactory.h.

65{false};

◆ maxValue

int KoOpenTypeFeatureInfo::maxValue

The maximum value possible, this is by default 1 (on), but for alternate substitution(gsub 3), it can have more inside the font.

Definition at line 67 of file KoOpenTypeFeatureInfoFactory.h.

◆ name

QString KoOpenTypeFeatureInfo::name

User-friendly name.

Definition at line 55 of file KoOpenTypeFeatureInfoFactory.h.

◆ namedParameters

QStringList KoOpenTypeFeatureInfo::namedParameters

Definition at line 61 of file KoOpenTypeFeatureInfoFactory.h.

◆ sample

QString KoOpenTypeFeatureInfo::sample

Sample of the feature, if any. Only used by CVXX features and retrieved from the font.

Definition at line 59 of file KoOpenTypeFeatureInfoFactory.h.

◆ tables

QVector<OpenTypeTable> KoOpenTypeFeatureInfo::tables

Named parameters. Only used by CVXX features and retrieved from the font.

Which table type(s) are recommended for this feature in the official registry.

Definition at line 63 of file KoOpenTypeFeatureInfoFactory.h.

◆ tag

QLatin1String KoOpenTypeFeatureInfo::tag

4 char tag.

Definition at line 53 of file KoOpenTypeFeatureInfoFactory.h.


The documentation for this struct was generated from the following file: