OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 | 6 |
7 #include "core/fpdfdoc/ctypeset.h" | 7 #include "core/fpdfdoc/ctypeset.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "core/fpdfdoc/cline.h" | 11 #include "core/fpdfdoc/cline.h" |
| 12 #include "core/fpdfdoc/cpvt_wordinfo.h" |
12 #include "core/fpdfdoc/csection.h" | 13 #include "core/fpdfdoc/csection.h" |
13 #include "core/fpdfdoc/cpvt_wordinfo.h" | |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const uint8_t special_chars[128] = { | 17 const uint8_t special_chars[128] = { |
18 0x00, 0x0C, 0x08, 0x0C, 0x08, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, | 18 0x00, 0x0C, 0x08, 0x0C, 0x08, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, |
19 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 19 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
20 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, | 20 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, |
21 0x10, 0x00, 0x00, 0x28, 0x0C, 0x08, 0x00, 0x00, 0x28, 0x28, 0x28, 0x28, | 21 0x10, 0x00, 0x00, 0x28, 0x0C, 0x08, 0x00, 0x00, 0x28, 0x28, 0x28, 0x28, |
22 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x08, 0x08, | 22 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x08, 0x08, |
23 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | 23 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 } | 484 } |
485 fPosX += m_pVT->GetWordWidth(*pWord); | 485 fPosX += m_pVT->GetWordWidth(*pWord); |
486 } | 486 } |
487 } | 487 } |
488 fPosY -= pLine->m_LineInfo.fLineDescent; | 488 fPosY -= pLine->m_LineInfo.fLineDescent; |
489 } | 489 } |
490 } | 490 } |
491 } | 491 } |
492 m_rcRet = CPVT_FloatRect(fMinX, fMinY, fMaxX, fMaxY); | 492 m_rcRet = CPVT_FloatRect(fMinX, fMinY, fMaxX, fMaxY); |
493 } | 493 } |
OLD | NEW |