OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Nicholas Shanks <contact@nickshanks.com> | 2 * Copyright (C) 2007 Nicholas Shanks <contact@nickshanks.com> |
3 * Copyright (C) 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008 Apple 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 | 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 TypesettingFeatures FontDescription::defaultTypesettingFeatures() | 185 TypesettingFeatures FontDescription::defaultTypesettingFeatures() |
186 { | 186 { |
187 return s_defaultTypesettingFeatures; | 187 return s_defaultTypesettingFeatures; |
188 } | 188 } |
189 | 189 |
190 void FontDescription::updateTypesettingFeatures() const | 190 void FontDescription::updateTypesettingFeatures() const |
191 { | 191 { |
192 m_typesettingFeatures = s_defaultTypesettingFeatures; | 192 m_typesettingFeatures = s_defaultTypesettingFeatures; |
193 | 193 |
194 switch (textRenderingMode()) { | 194 switch (textRendering()) { |
195 case AutoTextRendering: | 195 case AutoTextRendering: |
196 break; | 196 break; |
197 case OptimizeSpeed: | 197 case OptimizeSpeed: |
198 m_typesettingFeatures &= ~(WebCore::Kerning | Ligatures); | 198 m_typesettingFeatures &= ~(WebCore::Kerning | Ligatures); |
199 break; | 199 break; |
200 case GeometricPrecision: | 200 case GeometricPrecision: |
201 case OptimizeLegibility: | 201 case OptimizeLegibility: |
202 m_typesettingFeatures |= WebCore::Kerning | Ligatures; | 202 m_typesettingFeatures |= WebCore::Kerning | Ligatures; |
203 break; | 203 break; |
204 } | 204 } |
(...skipping 15 matching lines...) Expand all Loading... |
220 break; | 220 break; |
221 case FontDescription::EnabledLigaturesState: | 221 case FontDescription::EnabledLigaturesState: |
222 m_typesettingFeatures |= Ligatures; | 222 m_typesettingFeatures |= Ligatures; |
223 break; | 223 break; |
224 case FontDescription::NormalLigaturesState: | 224 case FontDescription::NormalLigaturesState: |
225 break; | 225 break; |
226 } | 226 } |
227 } | 227 } |
228 | 228 |
229 } // namespace WebCore | 229 } // namespace WebCore |
OLD | NEW |