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

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_FontMap.cpp

Issue 801913002: Simplify PDFium by removing code that's not used in the open source repo. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years 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
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/pdfwindow/PDFWindow.h" 7 #include "../../include/pdfwindow/PDFWindow.h"
8 #include "../../include/pdfwindow/PWL_Wnd.h" 8 #include "../../include/pdfwindow/PWL_Wnd.h"
9 #include "../../include/pdfwindow/PWL_FontMap.h" 9 #include "../../include/pdfwindow/PWL_FontMap.h"
10 10
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 if (!pNewFont) return -1; 306 if (!pNewFont) return -1;
307 307
308 /* 308 /*
309 if (CPDF_Font* pFont = GetPDFFont(nFind)) 309 if (CPDF_Font* pFont = GetPDFFont(nFind))
310 { 310 {
311 PWLFont.AddWordToFontDict(pFontDict, word); 311 PWLFont.AddWordToFontDict(pFontDict, word);
312 } 312 }
313 */ 313 */
314 314
315 #ifdef FOXIT_CHROME_BUILD 315 » CFX_ByteString sAlias = EncodeFontAlias("Arial_Chrome", nCharset);
316 CFX_ByteString sAlias = EncodeFontAlias("Arial_Chrome", nCharset);
317 #else
318 » CFX_ByteString sAlias = EncodeFontAlias("Arial_Foxit", nCharset);
319 #endif
320 AddedFont(pNewFont, sAlias); 316 AddedFont(pNewFont, sAlias);
321 317
322 return AddFontData(pNewFont, sAlias, nCharset); 318 return AddFontData(pNewFont, sAlias, nCharset);
323 } 319 }
324 320
325 CPDF_Font* CPWL_FontMap::FindFontSameCharset(CFX_ByteString& sFontAlias, FX_INT3 2 nCharset) 321 CPDF_Font* CPWL_FontMap::FindFontSameCharset(CFX_ByteString& sFontAlias, FX_INT3 2 nCharset)
326 { 322 {
327 return NULL; 323 return NULL;
328 } 324 }
329 325
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 } 592 }
597 593
598 CPWL_DocFontMap::~CPWL_DocFontMap() 594 CPWL_DocFontMap::~CPWL_DocFontMap()
599 { 595 {
600 } 596 }
601 597
602 CPDF_Document* CPWL_DocFontMap::GetDocument() 598 CPDF_Document* CPWL_DocFontMap::GetDocument()
603 { 599 {
604 return m_pAttachedDoc; 600 return m_pAttachedDoc;
605 } 601 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698