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

Side by Side Diff: chrome/renderer/renderer_sandbox_support_linux.h

Issue 2673003: [prelim] Additional renderer fontconfig support. (Closed)
Patch Set: ... Created 10 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 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ 5 #ifndef CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_
6 #define CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ 6 #define CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 // Returns: the font family or an empty string if the request could not be 23 // Returns: the font family or an empty string if the request could not be
24 // satisfied. 24 // satisfied.
25 std::string getFontFamilyForCharacters(const uint16_t* utf16, size_t num_utf16); 25 std::string getFontFamilyForCharacters(const uint16_t* utf16, size_t num_utf16);
26 26
27 void getRenderStyleForStrike(const char* family, int sizeAndStyle, 27 void getRenderStyleForStrike(const char* family, int sizeAndStyle,
28 WebKit::WebFontRenderStyle* out); 28 WebKit::WebFontRenderStyle* out);
29 29
30 // Returns a file descriptor for a shared memory segment. 30 // Returns a file descriptor for a shared memory segment.
31 int MakeSharedMemorySegmentViaIPC(size_t length); 31 int MakeSharedMemorySegmentViaIPC(size_t length);
32 32
33 // Return a file descriptor to the font which best matches the given
34 // properties or -1 on failure.
35 // microsoft_charset: specifies the language(s) that the font must cover. See
36 // the description of fdwCharSet in the MSDN documentation for CreateFont.
37 // Its expected that this value will come from another source, thus we
38 // don't attempt to translate it to a Chromium enum. If in doubt, pass 0.
39 int MatchFontWithFallback(const std::string& family, bool bold,
40 bool italic, uint32_t microsoft_charset);
41
42 // GetFontTable loads a specified font table from an open SFNT file.
43 // output: (output) on exit, points to a new[] allocated buffer.
44 // output_length: (output) on exit, contains the length of |output|
45 // fd: a file descriptor to the SFNT file. The position doesn't matter.
46 // table: the table in *big-endian* format.
47 //
48 // returns: true on success.
49 bool GetFontTable(uint8_t** output, size_t* output_length,
50 int fd, uint32_t table);
51
33 }; // namespace render_sandbox_support 52 }; // namespace render_sandbox_support
34 53
35 #endif // CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ 54 #endif // CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_main_platform_delegate_linux.cc ('k') | chrome/renderer/renderer_sandbox_support_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698