summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkit_glue.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-09 20:52:36 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-09 20:52:36 +0000
commit8ef13715896630c51f1926cfce8a67d7308c05b2 (patch)
tree82ca203f477243330bea49b1ce280518b01f2e86 /webkit/glue/webkit_glue.h
parent2ffc6f7dd40198a8f8f4445bf25be5cf2ebdafe1 (diff)
downloadchromium_src-8ef13715896630c51f1926cfce8a67d7308c05b2.zip
chromium_src-8ef13715896630c51f1926cfce8a67d7308c05b2.tar.gz
chromium_src-8ef13715896630c51f1926cfce8a67d7308c05b2.tar.bz2
Pepper v2 Font API browser implementation.
Review URL: http://codereview.chromium.org/2956002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.h')
-rw-r--r--webkit/glue/webkit_glue.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h
index d24e1512..541836b 100644
--- a/webkit/glue/webkit_glue.h
+++ b/webkit/glue/webkit_glue.h
@@ -265,6 +265,26 @@ std::string GetProductVersion();
// Returns true if the embedder is running in single process mode.
bool IsSingleProcess();
+#if defined(OS_LINUX)
+// Return a read-only file descriptor to the font which best matches the given
+// properties or -1 on failure.
+// charset: specifies the language(s) that the font must cover. See
+// render_sandbox_host_linux.cc for more information.
+int MatchFontWithFallback(const std::string& face, bool bold,
+ bool italic, int charset);
+
+// GetFontTable loads a specified font table from an open SFNT file.
+// fd: a file descriptor to the SFNT file. The position doesn't matter.
+// table: the table in *big-endian* format, or 0 for the whole font file.
+// output: a buffer of size output_length that gets the data. can be 0, in
+// which case output_length will be set to the required size in bytes.
+// output_length: size of output, if it's not 0.
+//
+// returns: true on success.
+bool GetFontTable(int fd, uint32_t table, uint8_t* output,
+ size_t* output_length);
+#endif
+
// ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER ---------------------------------