100 constexpr float kLeftPosition = 17.0f;
102 size_t length = str.GetLength();
103 std::vector<TextCharPos> charpos(length);
105 constexpr float kWidth = 35.0f;
108 length = tempStr.GetLength();
109 int32_t iFontSize =
static_cast<int32_t>(fabs(m_fFontSize));
110 int32_t iTextHeight = iFontSize + 1;
112 CFX_Matrix matr(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0);
113 CFX_FloatRect rect(kLeftPosition, (
float)(m_Height - iTextHeight),
114 kLeftPosition + kWidth - 0.5, (
float)m_Height);
118 CFX_Matrix matr1(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0);
119 CFX_FloatRect rect1(kLeftPosition + 40, (
float)(m_Height - iTextHeight),
120 kLeftPosition + 40 + kWidth - 0.5, (
float)m_Height);
124 constexpr float kWidth1 = 7.0f;
125 CFX_Matrix matr2(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0);
126 CFX_FloatRect rect2(0.0, (
float)(m_Height - iTextHeight), kWidth1 - 1,
131 CFX_Matrix matr3(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0);
132 CFX_FloatRect rect3(kLeftPosition + 85, (
float)(m_Height - iTextHeight),
133 kLeftPosition + 85 + kWidth1 - 0.5, (
float)m_Height);
137 float strWidth = kWidth * m_outputHScale;
139 pdfium::span<TextCharPos> charpos_span =
pdfium::make_span(charpos);
140 CalcTextInfo(tempStr, charpos_span.subspan(1), m_pFont, strWidth, iFontSize,
143 CFX_Matrix affine_matrix1(1.0, 0.0, 0.0, -1.0,
144 kLeftPosition * m_outputHScale,
145 (
float)(m_Height - iTextHeight + iFontSize));
147 device->DrawNormalText(charpos_span.subspan(1, length), m_pFont,
148 static_cast<
float>(iFontSize), affine_matrix1,
151 tempStr = str.Substr(6, 5);
152 length = tempStr.GetLength();
153 CalcTextInfo(tempStr, charpos_span.subspan(6), m_pFont, strWidth, iFontSize,
156 CFX_Matrix affine_matrix1(1.0, 0.0, 0.0, -1.0,
157 (kLeftPosition + 40) * m_outputHScale,
158 (
float)(m_Height - iTextHeight + iFontSize));
160 device->DrawNormalText(charpos_span.subspan(6, length), m_pFont,
161 static_cast<
float>(iFontSize), affine_matrix1,
164 tempStr = str.First(1);
165 length = tempStr.GetLength();
166 strWidth = 7 * m_outputHScale;
168 CalcTextInfo(tempStr, charpos, m_pFont, strWidth, iFontSize, blank);
170 CFX_Matrix affine_matrix1(1.0, 0.0, 0.0, -1.0, 0,
171 (
float)(m_Height - iTextHeight + iFontSize));
173 device->DrawNormalText(charpos_span.first(length), m_pFont,
174 static_cast<
float>(iFontSize), affine_matrix1,
177 tempStr = str.Substr(11, 1);
178 length = tempStr.GetLength();
179 CalcTextInfo(tempStr, charpos_span.subspan(11), m_pFont, strWidth, iFontSize,
182 CFX_Matrix affine_matrix1(1.0, 0.0, 0.0, -1.0,
183 (kLeftPosition + 85) * m_outputHScale,
184 (
float)(m_Height - iTextHeight + iFontSize));
186 device->DrawNormalText(charpos_span.subspan(11, length), m_pFont,
187 static_cast<
float>(iFontSize), affine_matrix1,