Qt 4.8
Functions
qharfbuzz.cpp File Reference
#include "qunicodetables_p.h"
#include "qlibrary.h"
#include "qtextcodec.h"
#include "qharfbuzz_p.h"

Go to the source code of this file.

Functions

void HB_GetGraphemeAndLineBreakClass (HB_UChar32 ch, HB_GraphemeClass *grapheme, HB_LineBreakClass *lineBreak)
 
HB_GraphemeClass HB_GetGraphemeClass (HB_UChar32 ch)
 
HB_LineBreakClass HB_GetLineBreakClass (HB_UChar32 ch)
 
HB_UChar16 HB_GetMirroredChar (HB_UChar16 ch)
 
HB_SentenceClass HB_GetSentenceClass (HB_UChar32 ch)
 
HB_CharCategory HB_GetUnicodeCharCategory (HB_UChar32 ch)
 
int HB_GetUnicodeCharCombiningClass (HB_UChar32 ch)
 
void HB_GetUnicodeCharProperties (HB_UChar32 ch, HB_CharCategory *category, int *combiningClass)
 
HB_WordClass HB_GetWordClass (HB_UChar32 ch)
 
void * HB_Library_Resolve (const char *library, int version, const char *symbol)
 
void qGetCharAttributes (const HB_UChar16 *string, hb_uint32 stringLength, const HB_ScriptItem *items, hb_uint32 numItems, HB_CharAttributes *attributes)
 
void qHBFreeFace (HB_Face face)
 
HB_Face qHBNewFace (void *font, HB_GetFontTableFunc tableFunc)
 
HB_Bool qShapeItem (HB_ShaperItem *item)
 

Function Documentation

◆ HB_GetGraphemeAndLineBreakClass()

void HB_GetGraphemeAndLineBreakClass ( HB_UChar32  ch,
HB_GraphemeClass *  grapheme,
HB_LineBreakClass *  lineBreak 
)

Definition at line 76 of file qharfbuzz.cpp.

77 {
79  *grapheme = (HB_GraphemeClass) prop->graphemeBreak;
80  *lineBreak = (HB_LineBreakClass) prop->line_break_class;
81 }
Q_CORE_EXPORT const Properties *QT_FASTCALL properties(uint ucs4)

◆ HB_GetGraphemeClass()

HB_GraphemeClass HB_GetGraphemeClass ( HB_UChar32  ch)

Definition at line 52 of file qharfbuzz.cpp.

53 {
55  return (HB_GraphemeClass) prop->graphemeBreak;
56 }
Q_CORE_EXPORT const Properties *QT_FASTCALL properties(uint ucs4)

◆ HB_GetLineBreakClass()

HB_LineBreakClass HB_GetLineBreakClass ( HB_UChar32  ch)

Definition at line 70 of file qharfbuzz.cpp.

71 {
72  return (HB_LineBreakClass)QUnicodeTables::lineBreakClass(ch);
73 }
Q_CORE_EXPORT QUnicodeTables::LineBreakClass QT_FASTCALL lineBreakClass(uint ucs4)

◆ HB_GetMirroredChar()

HB_UChar16 HB_GetMirroredChar ( HB_UChar16  ch)

Definition at line 100 of file qharfbuzz.cpp.

101 {
102  return QChar::mirroredChar(ch);
103 }
QChar mirroredChar() const
Returns the mirrored character if this character is a mirrored character; otherwise returns the chara...
Definition: qchar.cpp:1016

◆ HB_GetSentenceClass()

HB_SentenceClass HB_GetSentenceClass ( HB_UChar32  ch)

Definition at line 64 of file qharfbuzz.cpp.

65 {
67  return (HB_SentenceClass) prop->sentenceBreak;
68 }
Q_CORE_EXPORT const Properties *QT_FASTCALL properties(uint ucs4)

◆ HB_GetUnicodeCharCategory()

HB_CharCategory HB_GetUnicodeCharCategory ( HB_UChar32  ch)

Definition at line 90 of file qharfbuzz.cpp.

91 {
92  return (HB_CharCategory)QChar::category(ch);
93 }
Category category() const
Returns the character's category.
Definition: qchar.cpp:853

◆ HB_GetUnicodeCharCombiningClass()

int HB_GetUnicodeCharCombiningClass ( HB_UChar32  ch)

Definition at line 95 of file qharfbuzz.cpp.

96 {
97  return QChar::combiningClass(ch);
98 }
unsigned char combiningClass() const
Returns the combining class for the character as defined in the Unicode standard. ...
Definition: qchar.cpp:1153

◆ HB_GetUnicodeCharProperties()

void HB_GetUnicodeCharProperties ( HB_UChar32  ch,
HB_CharCategory *  category,
int *  combiningClass 
)

Definition at line 83 of file qharfbuzz.cpp.

84 {
86  *category = (HB_CharCategory)prop->category;
87  *combiningClass = prop->combiningClass;
88 }
Q_CORE_EXPORT const Properties *QT_FASTCALL properties(uint ucs4)

◆ HB_GetWordClass()

HB_WordClass HB_GetWordClass ( HB_UChar32  ch)

Definition at line 58 of file qharfbuzz.cpp.

59 {
61  return (HB_WordClass) prop->wordBreak;
62 }
Q_CORE_EXPORT const Properties *QT_FASTCALL properties(uint ucs4)

◆ HB_Library_Resolve()

void* HB_Library_Resolve ( const char *  library,
int  version,
const char *  symbol 
)

Definition at line 105 of file qharfbuzz.cpp.

106 {
107 #ifdef QT_NO_LIBRARY
108  return 0;
109 #else
110  return QLibrary::resolve(QLatin1String(library), version, symbol);
111 #endif
112 }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
void * resolve(const char *symbol)
Returns the address of the exported symbol symbol.
Definition: qlibrary.cpp:1155

◆ qGetCharAttributes()

void qGetCharAttributes ( const HB_UChar16 *  string,
hb_uint32  stringLength,
const HB_ScriptItem *  items,
hb_uint32  numItems,
HB_CharAttributes *  attributes 
)

Definition at line 133 of file qharfbuzz.cpp.

Referenced by QTextEngine::attributes(), and init().

136 {
137  HB_GetCharAttributes(string, stringLength, items, numItems, attributes);
138 }

◆ qHBFreeFace()

void qHBFreeFace ( HB_Face  face)

Definition at line 128 of file qharfbuzz.cpp.

Referenced by QFreetypeFace::release(), and QFontEngine::~QFontEngine().

129 {
130  HB_FreeFace(face);
131 }

◆ qHBNewFace()

HB_Face qHBNewFace ( void *  font,
HB_GetFontTableFunc  tableFunc 
)

Definition at line 123 of file qharfbuzz.cpp.

Referenced by QFreetypeFace::getFace(), and QFontEngine::harfbuzzFace().

124 {
125  return HB_NewFace(font, tableFunc);
126 }

◆ qShapeItem()

HB_Bool qShapeItem ( HB_ShaperItem *  item)

Definition at line 118 of file qharfbuzz.cpp.

Referenced by QTextEngine::shapeTextWithHarfbuzz().

119 {
120  return HB_ShapeItem(item);
121 }