OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Koji Ishii <kojiishi@gmail.com> | 2 * Copyright (C) 2012 Koji Ishii <kojiishi@gmail.com> |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 15 matching lines...) Expand all Loading... |
26 #if ENABLE(OPENTYPE_VERTICAL) | 26 #if ENABLE(OPENTYPE_VERTICAL) |
27 #include "platform/fonts/opentype/OpenTypeVerticalData.h" | 27 #include "platform/fonts/opentype/OpenTypeVerticalData.h" |
28 | 28 |
29 #include "platform/SharedBuffer.h" | 29 #include "platform/SharedBuffer.h" |
30 #include "platform/fonts/SimpleFontData.h" | 30 #include "platform/fonts/SimpleFontData.h" |
31 #include "platform/fonts/GlyphPage.h" | 31 #include "platform/fonts/GlyphPage.h" |
32 #include "platform/fonts/opentype/OpenTypeTypes.h" | 32 #include "platform/fonts/opentype/OpenTypeTypes.h" |
33 #include "platform/geometry/FloatRect.h" | 33 #include "platform/geometry/FloatRect.h" |
34 #include "wtf/RefPtr.h" | 34 #include "wtf/RefPtr.h" |
35 | 35 |
36 using namespace std; | |
37 | |
38 namespace blink { | 36 namespace blink { |
39 namespace OpenType { | 37 namespace OpenType { |
40 | 38 |
41 const uint32_t GSUBTag = OT_MAKE_TAG('G', 'S', 'U', 'B'); | 39 const uint32_t GSUBTag = OT_MAKE_TAG('G', 'S', 'U', 'B'); |
42 const uint32_t HheaTag = OT_MAKE_TAG('h', 'h', 'e', 'a'); | 40 const uint32_t HheaTag = OT_MAKE_TAG('h', 'h', 'e', 'a'); |
43 const uint32_t HmtxTag = OT_MAKE_TAG('h', 'm', 't', 'x'); | 41 const uint32_t HmtxTag = OT_MAKE_TAG('h', 'm', 't', 'x'); |
44 const uint32_t VheaTag = OT_MAKE_TAG('v', 'h', 'e', 'a'); | 42 const uint32_t VheaTag = OT_MAKE_TAG('v', 'h', 'e', 'a'); |
45 const uint32_t VmtxTag = OT_MAKE_TAG('v', 'm', 't', 'x'); | 43 const uint32_t VmtxTag = OT_MAKE_TAG('v', 'm', 't', 'x'); |
46 const uint32_t VORGTag = OT_MAKE_TAG('V', 'O', 'R', 'G'); | 44 const uint32_t VORGTag = OT_MAKE_TAG('V', 'O', 'R', 'G'); |
47 | 45 |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 if (glyphData.glyph && glyphData.fontData == font) { | 562 if (glyphData.glyph && glyphData.fontData == font) { |
565 Glyph to = map.get(glyphData.glyph); | 563 Glyph to = map.get(glyphData.glyph); |
566 if (to) | 564 if (to) |
567 glyphPage->setGlyphDataForIndex(index, to, font); | 565 glyphPage->setGlyphDataForIndex(index, to, font); |
568 } | 566 } |
569 } | 567 } |
570 } | 568 } |
571 | 569 |
572 } // namespace blink | 570 } // namespace blink |
573 #endif // ENABLE(OPENTYPE_VERTICAL) | 571 #endif // ENABLE(OPENTYPE_VERTICAL) |
OLD | NEW |