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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #include "SkPaint.h" | 32 #include "SkPaint.h" |
33 #include "SkPath.h" | 33 #include "SkPath.h" |
34 #include "SkTypeface.h" | 34 #include "SkTypeface.h" |
35 #include "SkTypes.h" | 35 #include "SkTypes.h" |
36 #include "platform/fonts/FontDescription.h" | 36 #include "platform/fonts/FontDescription.h" |
37 #include "platform/fonts/GlyphPage.h" | 37 #include "platform/fonts/GlyphPage.h" |
38 #include "platform/fonts/VDMXParser.h" | 38 #include "platform/fonts/VDMXParser.h" |
39 #include "platform/geometry/FloatRect.h" | 39 #include "platform/geometry/FloatRect.h" |
40 #include "wtf/MathExtras.h" | 40 #include "wtf/MathExtras.h" |
41 #include "wtf/Partitions.h" | 41 #include "wtf/allocator/Partitions.h" |
42 #include "wtf/text/CharacterNames.h" | 42 #include "wtf/text/CharacterNames.h" |
43 #include "wtf/text/Unicode.h" | 43 #include "wtf/text/Unicode.h" |
44 #include <unicode/unorm.h> | 44 #include <unicode/unorm.h> |
45 #include <unicode/utf16.h> | 45 #include <unicode/utf16.h> |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 const float smallCapsFontSizeMultiplier = 0.7f; | 49 const float smallCapsFontSizeMultiplier = 0.7f; |
50 const float emphasisMarkFontSizeMultiplier = 0.5f; | 50 const float emphasisMarkFontSizeMultiplier = 0.5f; |
51 | 51 |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 if (glyphs[i]) { | 447 if (glyphs[i]) { |
448 pageToFill->setGlyphDataForIndex(offset + i, glyphs[i], this); | 448 pageToFill->setGlyphDataForIndex(offset + i, glyphs[i], this); |
449 haveGlyphs = true; | 449 haveGlyphs = true; |
450 } | 450 } |
451 } | 451 } |
452 | 452 |
453 return haveGlyphs; | 453 return haveGlyphs; |
454 } | 454 } |
455 | 455 |
456 } // namespace blink | 456 } // namespace blink |
OLD | NEW |