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 <optional>
11
12class CFGAS_Char;
13
14namespace pdfium {
15
16constexpr wchar_t kArabicLetterLam = 0x0644;
17constexpr wchar_t kArabicLetterHeh = 0x0647;
18constexpr wchar_t kArabicShadda = 0x0651;
19constexpr wchar_t kArabicLetterSuperscriptAlef = 0x0670;
20
21wchar_t GetArabicFormChar(wchar_t wch, wchar_t prev, wchar_t next);
22wchar_t GetArabicFormChar(const CFGAS_Char* cur,
23 const CFGAS_Char* prev,
24 const CFGAS_Char* next);
25std::optional<wchar_t> GetArabicFromShaddaTable(wchar_t shadda);
26
27} // namespace pdfium
28
29#endif // XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
#define DCHECK
Definition check.h:33
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:85
int32_t m_iHorizontalScale
Definition cfgas_break.h:86
CFGAS_Char * GetLastChar(int32_t index, bool bOmitChar, bool bRichText) const
uint32_t m_dwIdentity
Definition cfgas_break.h:80
int32_t m_iCharSpace
Definition cfgas_break.h:89
wchar_t m_wParagraphBreakChar
Definition cfgas_break.h:83
bool HasLine() const
Definition cfgas_break.h:72
int32_t m_iFontSize
Definition cfgas_break.h:84
int32_t m_iLineStart
Definition cfgas_break.h:81
static const float kConversionFactor
Definition cfgas_break.h:67
int32_t m_iLineWidth
Definition cfgas_break.h:82
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)
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)
size_t GetDisplayPos(const CFGAS_TextPiece *pPiece, pdfium::span< TextCharPos > pCharPos) const
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
bool m_bGlyphAdjust
#define UNSAFE_TODO(...)
FX_LINEBREAKTYPE
#define FX_IsOdd(a)
pdfium::CheckedNumeric< int32_t > FX_SAFE_INT32
int FXSYS_roundf(float f)
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
std::optional< wchar_t > GetArabicFromShaddaTable(wchar_t shadda)
wchar_t GetArabicFormChar(const CFGAS_Char *cur, const CFGAS_Char *prev, const CFGAS_Char *next)
constexpr wchar_t kArabicLetterLam
Definition fgas_arabic.h:16
wchar_t GetArabicFormChar(wchar_t wch, wchar_t prev, wchar_t next)
constexpr wchar_t kArabicShadda
Definition fgas_arabic.h:18
constexpr wchar_t kArabicLetterSuperscriptAlef
Definition fgas_arabic.h:19
constexpr wchar_t kArabicLetterHeh
Definition fgas_arabic.h:17
fxcrt::WideString WideString
Definition widestring.h:207