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

Side by Side Diff: core/src/fxge/ge/fx_ge_font.cpp

Issue 1438573002: Merge to XFA: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month 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 | « core/src/fxge/ge/fx_ge_device.cpp ('k') | core/src/fxge/ge/fx_ge_fontmap.cpp » ('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 #include "../../../include/fxge/fx_ge.h" 7 #include "core/include/fxge/fx_freetype.h"
8 #include "../../../include/fxge/fx_freetype.h" 8 #include "core/include/fxge/fx_ge.h"
9 #include "text_int.h" 9 #include "text_int.h"
10 10
11 #define EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em) 11 #define EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em)
12 12
13 extern void _FPDFAPI_GetInternalFontData(int id1, 13 extern void _FPDFAPI_GetInternalFontData(int id1,
14 const uint8_t*& data, 14 const uint8_t*& data,
15 FX_DWORD& size); 15 FX_DWORD& size);
16 16
17 namespace { 17 namespace {
18 18
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 for (size_t i = 0; i < FX_ArraySize(g_EncodingID); ++i) { 526 for (size_t i = 0; i < FX_ArraySize(g_EncodingID); ++i) {
527 CFX_UnicodeEncodingEx* pFontEncoding = 527 CFX_UnicodeEncodingEx* pFontEncoding =
528 _FXFM_CreateFontEncoding(pFont, g_EncodingID[i]); 528 _FXFM_CreateFontEncoding(pFont, g_EncodingID[i]);
529 if (pFontEncoding) { 529 if (pFontEncoding) {
530 return pFontEncoding; 530 return pFontEncoding;
531 } 531 }
532 } 532 }
533 return NULL; 533 return NULL;
534 } 534 }
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_device.cpp ('k') | core/src/fxge/ge/fx_ge_fontmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698