OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 // Original code is licensed as follows: | 6 // Original code is licensed as follows: |
7 /* | 7 /* |
8 * Copyright 2011 ZXing authors | 8 * Copyright 2011 ZXing authors |
9 * | 9 * |
10 * Licensed under the Apache License, Version 2.0 (the "License"); | 10 * Licensed under the Apache License, Version 2.0 (the "License"); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 FX_FLOAT locY, | 192 FX_FLOAT locY, |
193 int32_t barWidth) { | 193 int32_t barWidth) { |
194 int32_t iFontSize = (int32_t)fabs(m_fFontSize); | 194 int32_t iFontSize = (int32_t)fabs(m_fFontSize); |
195 int32_t iTextHeight = iFontSize + 1; | 195 int32_t iTextHeight = iFontSize + 1; |
196 CFX_FloatRect rect((FX_FLOAT)locX, (FX_FLOAT)locY, (FX_FLOAT)(locX + geWidth), | 196 CFX_FloatRect rect((FX_FLOAT)locX, (FX_FLOAT)locY, (FX_FLOAT)(locX + geWidth), |
197 (FX_FLOAT)(locY + iTextHeight)); | 197 (FX_FLOAT)(locY + iTextHeight)); |
198 if (geWidth != m_Width) { | 198 if (geWidth != m_Width) { |
199 rect.right -= 1; | 199 rect.right -= 1; |
200 } | 200 } |
201 matrix->TransformRect(rect); | 201 matrix->TransformRect(rect); |
202 FX_RECT re = rect.GetOutterRect(); | 202 FX_RECT re = rect.GetOuterRect(); |
203 device->FillRect(&re, m_backgroundColor); | 203 device->FillRect(&re, m_backgroundColor); |
204 CFX_Matrix affine_matrix(1.0, 0.0, 0.0, -1.0, (FX_FLOAT)locX, | 204 CFX_Matrix affine_matrix(1.0, 0.0, 0.0, -1.0, (FX_FLOAT)locX, |
205 (FX_FLOAT)(locY + iFontSize)); | 205 (FX_FLOAT)(locY + iFontSize)); |
206 if (matrix) { | 206 if (matrix) { |
207 affine_matrix.Concat(*matrix); | 207 affine_matrix.Concat(*matrix); |
208 } | 208 } |
209 device->DrawNormalText( | 209 device->DrawNormalText( |
210 str.GetLength(), pCharPos, m_pFont, CFX_GEModule::Get()->GetFontCache(), | 210 str.GetLength(), pCharPos, m_pFont, CFX_GEModule::Get()->GetFontCache(), |
211 (FX_FLOAT)iFontSize, &affine_matrix, m_fontColor, FXTEXT_CLEARTYPE); | 211 (FX_FLOAT)iFontSize, &affine_matrix, m_fontColor, FXTEXT_CLEARTYPE); |
212 } | 212 } |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 455 |
456 CFX_WideString CBC_OneDimWriter::FilterContents( | 456 CFX_WideString CBC_OneDimWriter::FilterContents( |
457 const CFX_WideStringC& contents) { | 457 const CFX_WideStringC& contents) { |
458 return CFX_WideString(); | 458 return CFX_WideString(); |
459 } | 459 } |
460 | 460 |
461 CFX_WideString CBC_OneDimWriter::RenderTextContents( | 461 CFX_WideString CBC_OneDimWriter::RenderTextContents( |
462 const CFX_WideStringC& contents) { | 462 const CFX_WideStringC& contents) { |
463 return CFX_WideString(); | 463 return CFX_WideString(); |
464 } | 464 } |
OLD | NEW |