Ticket #12057: osd_subtitle.xml

File osd_subtitle.xml, 4.0 KB (added by faginbagin <mythtv@…>, 10 years ago)
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE mythuitheme SYSTEM "http://www.mythtv.org/schema/mythuitheme.dtd">
3<mythuitheme>
4    <window name="osd_subtitle">
5        <!--
6            This is a reference implementation of the system/provider
7            defaults specified in
8            SubtitleFormat:CreateProviderDefault().
9
10            Note that if all attributes/elements are simply inherited
11            from provider, then the specification is optional.  E.g.,
12            the following could be omitted:
13
14            <fontdef name="sample" from="provider"></fontdef>
15            <shape   name="sample" from="provider"></shape>
16
17            Also note that these specific definitions are unnecessary
18            since they are the same as the defaults in the code.  A
19            theme only needs to include the definitions that it wants
20            to change/override.
21          -->
22
23        <!--
24            Define a black background which is used below for 608 and
25            text subtitles.  If a background is not used, it is
26            recommended to use a 2-pixel outline or shadow in the
27            fontdef, in order to provide sufficient contrast.  Note
28            that 708 captions providers almost always specify an
29            explicit black background.
30          -->
31        <shape name="black_background" from="provider">
32          <type>box</type>
33          <fill color="#000000" alpha="255" />
34        </shape>
35
36
37        <!--
38            Subtitle type "text" generally comes from external text
39            files like .srt or .txt files.
40           -->
41        <fontdef name="text" face="Droid Sans" from="provider">
42            <pixelsize>36</pixelsize>
43        </fontdef>
44
45        <shape   name="text" from="black_background">
46        </shape>
47
48
49        <!--
50            Digital teletext text-based subtitles.  Not to be confused
51            with bitmap teletext subtitles, or CEA-608 teletext
52            captions.  A monospaced font should be used.
53           -->
54        <fontdef name="teletext" face="FreeMono" from="provider">
55            <pixelsize>42</pixelsize>
56        </fontdef>
57
58
59        <!--
60            CEA-608 closed captions.  These also apply to CEA-608 VBI
61            teletext captions.  A monospaced font should be used.
62           -->
63        <fontdef name="608" face="Liberation Mono" from="provider">
64            <!-- <pixelsize>36</pixelsize> -->
65        </fontdef>
66
67        <shape   name="608" from="black_background">
68        </shape>
69
70
71        <!--
72            CEA-708 closed captions.  The spec defines 8 different
73            font tags, but in practice (at least in the U.S.), only
74            tags 0 and 3 are used by broadcasters.
75           -->
76        <!-- Font tag 0: "Default" -->
77        <fontdef name="708_0" face="Droid Sans Mono"        from="provider">
78            <pixelsize>36</pixelsize>
79        </fontdef>
80
81        <!-- Font tag 1: "Monospaced Serif" -->
82        <fontdef name="708_1" face="FreeMono"        from="provider">
83            <pixelsize>42</pixelsize>
84        </fontdef>
85
86        <!-- Font tag 2: "Proportional Serif" -->
87        <fontdef name="708_2" face="Droid Serif"     from="provider">
88            <pixelsize>36</pixelsize>
89        </fontdef>
90
91        <!-- Font tag 3: "Monospaced Sans Serif" -->
92        <fontdef name="708_3" face="Droid Sans Mono" from="provider">
93            <pixelsize>36</pixelsize>
94        </fontdef>
95
96        <!-- Font tag 4: "Proportional Sans Serif" -->
97        <fontdef name="708_4" face="Droid Sans"      from="provider">
98            <pixelsize>36</pixelsize>
99        </fontdef>
100
101        <!-- Font tag 5: "Casual" -->
102        <fontdef name="708_5" face="Purisa"          from="provider">
103            <pixelsize>24</pixelsize>
104        </fontdef>
105
106        <!-- Font tag 6: "Cursive" -->
107        <fontdef name="708_6" face="URW Chancery L" from="provider">
108            <pixelsize>33</pixelsize>
109        </fontdef>
110
111        <!-- Font tag 7: "Small Capitals" -->
112        <!-- Note: The Qt property QFont::SmallCaps is automatically
113             applied to this font. -->
114        <fontdef name="708_7" face="Droid Sans"     from="provider">
115            <pixelsize>36</pixelsize>
116        </fontdef>
117
118    </window>
119</mythuitheme>