| 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 "../../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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 m_aData.RemoveAll(); | 188 m_aData.RemoveAll(); |
| 189 } | 189 } |
| 190 { | 190 { |
| 191 for (int32_t i=0, sz=m_aNativeFont.GetSize(); i<sz; i++) | 191 for (int32_t i=0, sz=m_aNativeFont.GetSize(); i<sz; i++) |
| 192 delete m_aNativeFont.GetAt(i); | 192 delete m_aNativeFont.GetAt(i); |
| 193 | 193 |
| 194 m_aNativeFont.RemoveAll(); | 194 m_aNativeFont.RemoveAll(); |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 void CPWL_FontMap::Initial(FX_LPCSTR fontname) | 198 void CPWL_FontMap::Initial(const FX_CHAR* fontname) |
| 199 { | 199 { |
| 200 CFX_ByteString sFontName = fontname; | 200 CFX_ByteString sFontName = fontname; |
| 201 | 201 |
| 202 if (sFontName.IsEmpty()) | 202 if (sFontName.IsEmpty()) |
| 203 sFontName = DEFAULT_FONT_NAME; | 203 sFontName = DEFAULT_FONT_NAME; |
| 204 | 204 |
| 205 GetFontIndex(sFontName, ANSI_CHARSET, FALSE); | 205 GetFontIndex(sFontName, ANSI_CHARSET, FALSE); |
| 206 | 206 |
| 207 //GetFontIndex(this->GetNativeFontName(nCharset), nCharset); | 207 //GetFontIndex(this->GetNativeFontName(nCharset), nCharset); |
| 208 } | 208 } |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 } | 592 } |
| 593 | 593 |
| 594 CPWL_DocFontMap::~CPWL_DocFontMap() | 594 CPWL_DocFontMap::~CPWL_DocFontMap() |
| 595 { | 595 { |
| 596 } | 596 } |
| 597 | 597 |
| 598 CPDF_Document* CPWL_DocFontMap::GetDocument() | 598 CPDF_Document* CPWL_DocFontMap::GetDocument() |
| 599 { | 599 { |
| 600 return m_pAttachedDoc; | 600 return m_pAttachedDoc; |
| 601 } | 601 } |
| OLD | NEW |