Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: core/include/fpdfapi/fpdf_resource.h

Issue 656463006: Fix off-by-one in sizing of m_EmbeddedToUnicodes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: g_Charset explicitly sized. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_font/font_int.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef _FPDF_RESOURCE_ 7 #ifndef _FPDF_RESOURCE_
8 #define _FPDF_RESOURCE_ 8 #define _FPDF_RESOURCE_
9 #ifndef _FPDF_PARSER_ 9 #ifndef _FPDF_PARSER_
10 #include "fpdf_parser.h" 10 #include "fpdf_parser.h"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 CFX_MapPtrToPtr m_DeletedMap; 473 CFX_MapPtrToPtr m_DeletedMap;
474 protected: 474 protected:
475 CFX_AffineMatrix m_FontMatrix; 475 CFX_AffineMatrix m_FontMatrix;
476 }; 476 };
477 #define CIDSET_UNKNOWN 0 477 #define CIDSET_UNKNOWN 0
478 #define CIDSET_GB1 1 478 #define CIDSET_GB1 1
479 #define CIDSET_CNS1 2 479 #define CIDSET_CNS1 2
480 #define CIDSET_JAPAN1 3 480 #define CIDSET_JAPAN1 3
481 #define CIDSET_KOREA1 4 481 #define CIDSET_KOREA1 4
482 #define CIDSET_UNICODE 5 482 #define CIDSET_UNICODE 5
483 #define NUMBER_OF_CIDSETS 6
484
483 class CPDF_CIDFont : public CPDF_Font 485 class CPDF_CIDFont : public CPDF_Font
484 { 486 {
485 public: 487 public:
486 488
487 CPDF_CIDFont(); 489 CPDF_CIDFont();
488 490
489 virtual ~CPDF_CIDFont(); 491 virtual ~CPDF_CIDFont();
490 492
491 FX_BOOL LoadGB2312(); 493 FX_BOOL LoadGB2312();
492 virtual int GlyphFromCharCode(FX_DWORD charcode, FX_ BOOL *pVertGlyph = NULL); 494 virtual int GlyphFromCharCode(FX_DWORD charcode, FX_ BOOL *pVertGlyph = NULL);
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 FX_BOOL m_bIsMask; 948 FX_BOOL m_bIsMask;
947 949
948 FX_BOOL m_bInterpolate; 950 FX_BOOL m_bInterpolate;
949 951
950 CPDF_Document* m_pDocument; 952 CPDF_Document* m_pDocument;
951 953
952 CPDF_Dictionary* m_pOC; 954 CPDF_Dictionary* m_pOC;
953 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size); 955 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size);
954 }; 956 };
955 #endif 957 #endif
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_font/font_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698