Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fgas_arabic.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
8#define XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
9
10#include "third_party/abseil-cpp/absl/types/optional.h"
11
12class CFGAS_Char;
13
14namespace pdfium {
15namespace arabic {
16
17constexpr wchar_t kArabicLetterLam = 0x0644;
18constexpr wchar_t kArabicLetterHeh = 0x0647;
19constexpr wchar_t kArabicShadda = 0x0651;
20constexpr wchar_t kArabicLetterSuperscriptAlef = 0x0670;
21
22wchar_t GetFormChar(wchar_t wch, wchar_t prev, wchar_t next);
23wchar_t GetFormChar(const CFGAS_Char* cur,
24 const CFGAS_Char* prev,
25 const CFGAS_Char* next);
26absl::optional<wchar_t> GetArabicFromShaddaTable(wchar_t shadda);
27
28} // namespace arabic
29} // namespace pdfium
30
31#endif // XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
int32_t GetLineEnd() const
void IncrementArabicCharCount()
void DecrementArabicCharCount()
int32_t GetStartChar() const
void SetVerticalScale(int32_t scale)
void SetStatus(CFGAS_Char::BreakType status)
void SetBidiLevel(int32_t level)
void SetCharCount(int32_t count)
void SetStartChar(int32_t pos)
int32_t GetBidiPos() const
void IncrementWidth(int32_t width)
void IncrementStartPos(int32_t count)
void SetBidiPos(int32_t pos)
void SetFontSize(int32_t font_size)
void SetHorizontalScale(int32_t scale)
void SetWidth(int32_t width)
void SetUserData(const RetainPtr< CFGAS_TextUserData > &user_data)
int32_t GetWidth() const
void SetBreakStatus()
int32_t m_iTabWidth
Definition cfgas_break.h:83
int32_t m_iHorizontalScale
Definition cfgas_break.h:84
CFGAS_Char * GetLastChar(int32_t index, bool bOmitChar, bool bRichText) const
uint32_t m_dwIdentity
Definition cfgas_break.h:78
int32_t m_iCharSpace
Definition cfgas_break.h:87
wchar_t m_wParagraphBreakChar
Definition cfgas_break.h:81
bool HasLine() const
Definition cfgas_break.h:70
int32_t m_iFontSize
Definition cfgas_break.h:82
int32_t m_iLineStart
Definition cfgas_break.h:79
static const float kConversionFactor
Definition cfgas_break.h:65
int32_t m_iLineWidth
Definition cfgas_break.h:80
int32_t m_iFontSize
Definition cfgas_char.h:51
uint32_t m_dwIdentity
Definition cfgas_char.h:52
int32_t m_iCharWidth
Definition cfgas_char.h:47
uint16_t m_iBidiOrder
Definition cfgas_char.h:50
uint16_t m_iBidiPos
Definition cfgas_char.h:49
BreakType m_dwStatus
Definition cfgas_char.h:43
int16_t vertical_scale() const
Definition cfgas_char.h:41
uint16_t m_iBidiLevel
Definition cfgas_char.h:48
int16_t horizonal_scale() const
Definition cfgas_char.h:40
FX_LINEBREAKTYPE m_eLineBreakType
Definition cfgas_char.h:45
uint16_t char_code() const
Definition cfgas_char.h:39
void SetUserData(const RetainPtr< CFGAS_TextUserData > &pUserData)
size_t GetDisplayPos(const CFGAS_TextPiece *pPiece, std::vector< TextCharPos > *pCharPos) const
void SetAlignment(LineAlignment align)
CFGAS_Char::BreakType AppendChar(wchar_t wch)
CFGAS_RTFBreak(Mask< LayoutStyle > dwLayoutStyles)
~CFGAS_RTFBreak() override
CFGAS_Char::BreakType EndBreak(CFGAS_Char::BreakType dwStatus)
void SetLineStartPos(float fLinePos)
void AddPositionedTab(float fTabPos)
RetainPtr< CFGAS_GEFont > pFont
std::vector< int32_t > Widths
CFX_RectF(const CFX_RectF &other)=default
float right() const
uint32_t m_GlyphIndex
float m_AdjustMatrix[4]
bool m_bGlyphAdjust
FX_LINEBREAKTYPE
#define FX_IsOdd(a)
int FXSYS_roundf(float f)
Definition fx_system.cpp:92
constexpr wchar_t kArabicLetterLam
Definition fgas_arabic.h:17
absl::optional< wchar_t > GetArabicFromShaddaTable(wchar_t shadda)
wchar_t GetFormChar(const CFGAS_Char *cur, const CFGAS_Char *prev, const CFGAS_Char *next)
constexpr wchar_t kArabicShadda
Definition fgas_arabic.h:19
constexpr wchar_t kArabicLetterSuperscriptAlef
Definition fgas_arabic.h:20
wchar_t GetFormChar(wchar_t wch, wchar_t prev, wchar_t next)
constexpr wchar_t kArabicLetterHeh
Definition fgas_arabic.h:18
wchar_t GetMirrorChar(wchar_t wch)
constexpr wchar_t kZeroWidthNoBreakSpace
Definition fx_unicode.h:103
constexpr wchar_t kLineSeparator
Definition fx_unicode.h:100
constexpr wchar_t kParagraphSeparator
Definition fx_unicode.h:101