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 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "core/include/fpdfdoc/fpdf_doc.h" | 9 #include "core/include/fpdfdoc/fpdf_doc.h" |
10 #include "core/include/fpdfdoc/fpdf_vt.h" | 10 #include "core/include/fpdfdoc/fpdf_vt.h" |
11 #include "pdf_vt.h" | 11 #include "core/src/fpdfdoc/pdf_vt.h" |
12 | 12 |
13 const uint8_t gFontSizeSteps[] = {4, 6, 8, 9, 10, 12, 14, 18, 20, | 13 const uint8_t gFontSizeSteps[] = {4, 6, 8, 9, 10, 12, 14, 18, 20, |
14 25, 30, 35, 40, 45, 50, 55, 60, 70, | 14 25, 30, 35, 40, 45, 50, 55, 60, 70, |
15 80, 90, 100, 110, 120, 130, 144}; | 15 80, 90, 100, 110, 120, 130, 144}; |
16 #define PVT_RETURN_LENGTH 1 | 16 #define PVT_RETURN_LENGTH 1 |
17 #define PVT_DEFAULT_FONTSIZE 18.0f | 17 #define PVT_DEFAULT_FONTSIZE 18.0f |
18 #define PVTWORD_SCRIPT_NORMAL 0 | 18 #define PVTWORD_SCRIPT_NORMAL 0 |
19 #define PVTWORD_SCRIPT_SUPER 1 | 19 #define PVTWORD_SCRIPT_SUPER 1 |
20 #define PVTWORD_SCRIPT_SUB 2 | 20 #define PVTWORD_SCRIPT_SUB 2 |
21 #define PVT_FONTSCALE 0.001f | 21 #define PVT_FONTSCALE 0.001f |
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1816 if (pSection->m_SecInfo.pSecProps) { | 1816 if (pSection->m_SecInfo.pSecProps) { |
1817 *pSection->m_SecInfo.pSecProps = section.SecProps; | 1817 *pSection->m_SecInfo.pSecProps = section.SecProps; |
1818 } | 1818 } |
1819 if (pSection->m_SecInfo.pWordProps) { | 1819 if (pSection->m_SecInfo.pWordProps) { |
1820 *pSection->m_SecInfo.pWordProps = section.WordProps; | 1820 *pSection->m_SecInfo.pWordProps = section.WordProps; |
1821 } | 1821 } |
1822 return TRUE; | 1822 return TRUE; |
1823 } | 1823 } |
1824 return FALSE; | 1824 return FALSE; |
1825 } | 1825 } |
OLD | NEW |