OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Computer, Inc. | 2 * Copyright (C) 2006, 2007 Apple Computer, Inc. |
3 * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved. | 3 * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 19 matching lines...) Expand all Loading... |
30 */ | 30 */ |
31 | 31 |
32 #include "config.h" | 32 #include "config.h" |
33 #include "platform/fonts/FontPlatformData.h" | 33 #include "platform/fonts/FontPlatformData.h" |
34 | 34 |
35 #include "platform/LayoutTestSupport.h" | 35 #include "platform/LayoutTestSupport.h" |
36 #include "platform/fonts/FontCache.h" | 36 #include "platform/fonts/FontCache.h" |
37 #include "platform/fonts/harfbuzz/HarfBuzzFace.h" | 37 #include "platform/fonts/harfbuzz/HarfBuzzFace.h" |
38 #include "platform/fonts/win/SkiaFontWin.h" | 38 #include "platform/fonts/win/SkiaFontWin.h" |
39 #include "platform/graphics/GraphicsContext.h" | 39 #include "platform/graphics/GraphicsContext.h" |
40 #include "platform/win/HWndDC.h" | |
41 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
42 #include "public/platform/win/WebSandboxSupport.h" | 41 #include "public/platform/win/WebSandboxSupport.h" |
43 #include "wtf/PassOwnPtr.h" | 42 #include "wtf/PassOwnPtr.h" |
44 #include "wtf/StdLibExtras.h" | 43 #include "wtf/StdLibExtras.h" |
45 #include <mlang.h> | |
46 #include <objidl.h> | |
47 #include <windows.h> | 44 #include <windows.h> |
48 | 45 |
49 namespace WebCore { | 46 namespace WebCore { |
50 | 47 |
51 void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext* context) cons
t | 48 void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext* context) cons
t |
52 { | 49 { |
53 const float ts = m_textSize >= 0 ? m_textSize : 12; | 50 const float ts = m_textSize >= 0 ? m_textSize : 12; |
54 paint->setTextSize(SkFloatToScalar(m_textSize)); | 51 paint->setTextSize(SkFloatToScalar(m_textSize)); |
55 paint->setTypeface(typeface()); | 52 paint->setTypeface(typeface()); |
56 paint->setFakeBoldText(m_syntheticBold); | 53 paint->setFakeBoldText(m_syntheticBold); |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 } | 253 } |
257 | 254 |
258 #ifndef NDEBUG | 255 #ifndef NDEBUG |
259 String FontPlatformData::description() const | 256 String FontPlatformData::description() const |
260 { | 257 { |
261 return String(); | 258 return String(); |
262 } | 259 } |
263 #endif | 260 #endif |
264 | 261 |
265 } // namespace WebCore | 262 } // namespace WebCore |
OLD | NEW |