OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2008, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Alexey Proskuryakov | 3 * Copyright (C) 2006 Alexey Proskuryakov |
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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 , m_verticalData(0) | 54 , m_verticalData(0) |
55 #endif | 55 #endif |
56 , m_hasVerticalGlyphs(false) | 56 , m_hasVerticalGlyphs(false) |
57 { | 57 { |
58 platformInit(); | 58 platformInit(); |
59 platformGlyphInit(); | 59 platformGlyphInit(); |
60 platformCharWidthInit(); | 60 platformCharWidthInit(); |
61 #if ENABLE(OPENTYPE_VERTICAL) | 61 #if ENABLE(OPENTYPE_VERTICAL) |
62 if (platformData.orientation() == Vertical && !isTextOrientationFallback) { | 62 if (platformData.orientation() == Vertical && !isTextOrientationFallback) { |
63 m_verticalData = platformData.verticalData(); | 63 m_verticalData = platformData.verticalData(); |
64 m_hasVerticalGlyphs = m_verticalData && m_verticalData->hasVerticalMetri
cs(); | 64 m_hasVerticalGlyphs = m_verticalData.get() && m_verticalData->hasVertica
lMetrics(); |
65 } | 65 } |
66 #endif | 66 #endif |
67 } | 67 } |
68 | 68 |
69 SimpleFontData::SimpleFontData(PassOwnPtr<AdditionalFontData> fontData, float fo
ntSize, bool syntheticBold, bool syntheticItalic) | 69 SimpleFontData::SimpleFontData(PassOwnPtr<AdditionalFontData> fontData, float fo
ntSize, bool syntheticBold, bool syntheticItalic) |
70 : m_platformData(FontPlatformData(fontSize, syntheticBold, syntheticItalic)) | 70 : m_platformData(FontPlatformData(fontSize, syntheticBold, syntheticItalic)) |
71 , m_fontData(fontData) | 71 , m_fontData(fontData) |
72 , m_treatAsFixedPitch(false) | 72 , m_treatAsFixedPitch(false) |
73 , m_isCustomFont(true) | 73 , m_isCustomFont(true) |
74 , m_isLoading(false) | 74 , m_isLoading(false) |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 while (count-- > 0 && *fonts) { | 247 while (count-- > 0 && *fonts) { |
248 OwnPtr<SimpleFontData> afont = adoptPtr(*fonts++); | 248 OwnPtr<SimpleFontData> afont = adoptPtr(*fonts++); |
249 GlyphPageTreeNode::pruneTreeCustomFontData(afont.get()); | 249 GlyphPageTreeNode::pruneTreeCustomFontData(afont.get()); |
250 } | 250 } |
251 } | 251 } |
252 } | 252 } |
253 #endif | 253 #endif |
254 } | 254 } |
255 | 255 |
256 } // namespace WebCore | 256 } // namespace WebCore |
OLD | NEW |