Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(781)

Side by Side Diff: public/platform/linux/WebFontInfo.h

Issue 323963002: Remove old functions in the process of renaming WebFontFamily to WebFallbackFont (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@ren_step1
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Return a font family which provides a glyph for the Unicode code point 51 // Return a font family which provides a glyph for the Unicode code point
52 // specified by character. 52 // specified by character.
53 // character: a UTF-32 code point 53 // character: a UTF-32 code point
54 // preferredLocale: preferred locale identifier for the |characters| 54 // preferredLocale: preferred locale identifier for the |characters|
55 // (e.g. "en", "ja", "zh-CN") 55 // (e.g. "en", "ja", "zh-CN")
56 // 56 //
57 // Returns: the font family or an empty string if the request could not be s atisfied. 57 // Returns: the font family or an empty string if the request could not be s atisfied.
58 // Returns: the font family instance. The instance has an empty font name if the request could not be satisfied. 58 // Returns: the font family instance. The instance has an empty font name if the request could not be satisfied.
59 BLINK_EXPORT static void fallbackFontForChar(const WebUChar32 character, con st char* preferredLocale, WebFallbackFont*); 59 BLINK_EXPORT static void fallbackFontForChar(const WebUChar32 character, con st char* preferredLocale, WebFallbackFont*);
60 60
61 // TODO(dro): Remove this legacy version, kept until renames on the Chromium side are done. crbug.com/382411
62 BLINK_EXPORT static void familyForChar(const WebUChar32 character, const cha r* preferredLocale, WebFontFamily*);
63
64 // Fill out the given WebFontRenderStyle with the user's preferences for 61 // Fill out the given WebFontRenderStyle with the user's preferences for
65 // rendering the given font at the given size (in pixels). 62 // rendering the given font at the given size (in pixels).
66 // family: i.e. "Times New Roman" 63 // family: i.e. "Times New Roman"
67 // sizeAndStyle: 64 // sizeAndStyle:
68 // 3322222222221111111111 65 // 3322222222221111111111
69 // 10987654321098765432109876543210 66 // 10987654321098765432109876543210
70 // +--------------------------------+ 67 // +--------------------------------+
71 // |..............Size............IB| 68 // |..............Size............IB|
72 // +--------------------------------+ 69 // +--------------------------------+
73 // I: italic flag 70 // I: italic flag
74 // B: bold flag 71 // B: bold flag
75 BLINK_EXPORT static void renderStyleForStrike(const char* family, int sizeAn dStyle, WebFontRenderStyle* result); 72 BLINK_EXPORT static void renderStyleForStrike(const char* family, int sizeAn dStyle, WebFontRenderStyle* result);
76 }; 73 };
77 74
78 } // namespace blink 75 } // namespace blink
79 76
80 #endif 77 #endif
OLDNEW
« no previous file with comments | « Source/platform/fonts/linux/FontCacheLinux.cpp ('k') | public/platform/linux/WebSandboxSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698