source: mainline/uspace/lib/gfxfont/private/tpf_file.h@ aaf962e6

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since aaf962e6 was d53af3c8, checked in by Jiri Svoboda <jiri@…>, 5 years ago

Save typeface to (RIFF) TPF file using newly introduced libriff

Originally I planned introducing libriff for better RIFF WAVE support.
It could be used for this purpose in the future (as well as for WebP
and other RIFF-based formats).

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2 * Copyright (c) 2020 Jiri Svoboda
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** @addtogroup libgfxfont
30 * @{
31 */
32/**
33 * @file TPF file definitions
34 *
35 */
36
37#ifndef _GFX_PRIVATE_TPF_FILE_H
38#define _GFX_PRIVATE_TPF_FILE_H
39
40enum {
41 /** Typeface RIFF format ID */
42 FORM_TPFC = 0x43465054,
43
44 /** Font list type */
45 LTYPE_font = 0x746e6f66,
46
47 /** Font properties chunk ID */
48 CKID_fprp = 0x70727066,
49 /** Font metrics chunk ID */
50 CKID_fmtr = 0x72746d66,
51 /** Font bitmap chunk ID */
52 CKID_fbmp = 0x706d6266,
53
54 /** Glyph list type */
55 LTYPE_glph = 0x68706c67,
56
57 /** Glyph metrics chunk ID */
58 CKID_gmtr = 0x72746d67,
59 /** Glyph patterns chunk ID */
60 CKID_gpat = 0x74617067,
61 /** Glyph rectangle/origin chunk ID */
62 CKID_gror = 0x726f7267
63};
64
65#endif
66
67/** @}
68 */
Note: See TracBrowser for help on using the repository browser.