| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 Google Inc. All rights reserved. | 2 * Copyright (c) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (c) 2014 BlackBerry Limited. All rights reserved. | 3 * Copyright (c) 2014 BlackBerry Limited. 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 m_platformData->setupPaint(&hbFontData->m_paint); | 228 m_platformData->setupPaint(&hbFontData->m_paint); |
| 229 hb_font_t* font = hb_font_create(m_face); | 229 hb_font_t* font = hb_font_create(m_face); |
| 230 hb_font_set_funcs(font, harfBuzzSkiaGetFontFuncs(), hbFontData, destroyHarfB
uzzFontData); | 230 hb_font_set_funcs(font, harfBuzzSkiaGetFontFuncs(), hbFontData, destroyHarfB
uzzFontData); |
| 231 float size = m_platformData->size(); | 231 float size = m_platformData->size(); |
| 232 int scale = SkiaScalarToHarfBuzzPosition(size); | 232 int scale = SkiaScalarToHarfBuzzPosition(size); |
| 233 hb_font_set_scale(font, scale, scale); | 233 hb_font_set_scale(font, scale, scale); |
| 234 hb_font_make_immutable(font); | 234 hb_font_make_immutable(font); |
| 235 return font; | 235 return font; |
| 236 } | 236 } |
| 237 | 237 |
| 238 GlyphBufferAdvance HarfBuzzShaper::createGlyphBufferAdvance(float width, float h
eight) | |
| 239 { | |
| 240 return GlyphBufferAdvance(width, height); | |
| 241 } | |
| 242 | |
| 243 } // namespace WebCore | 238 } // namespace WebCore |
| OLD | NEW |