summaryrefslogtreecommitdiffstats
path: root/ppapi/api/private/ppb_flash_font_file.idl
blob: b921d1854ca93d564cc44f503755ca13f926cc78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * This file contains the <code>PPB_Flash_FontFile</code> interface.
 */

[generate_thunk]

label Chrome {
  M24 = 0.1,
  M48 = 0.2
};

interface PPB_Flash_FontFile {
  /* Returns a resource identifying a font file corresponding to the given font
   * request after applying the browser-specific fallback.
   */
  PP_Resource Create(
      [in] PP_Instance instance,
      [in] PP_BrowserFont_Trusted_Description description,
      [in] PP_PrivateFontCharset charset);

  /* Determines if a given resource is Flash font file.
   */
  PP_Bool IsFlashFontFile([in] PP_Resource resource);

  /* Returns the requested font table.
   * |output_length| should pass in the size of |output|. And it will return
   * the actual length of returned data. |output| could be NULL in order to
   * query the size of the buffer size needed. In that case, the input value of
   * |output_length| is ignored.
   * Note: it is Linux only and fails directly on other platforms.
   */
  PP_Bool GetFontTable(
      [in] PP_Resource font_file,
      [in] uint32_t table,
      [out] mem_t output,
      [out] uint32_t output_length);

  /**
   * Returns whether <code>PPB_Flash_FontFile</code> is supported on Windows.
   */
  [version=0.2]
  PP_Bool IsSupportedForWindows();

};