Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.ExtLibs/HeuristicLab.AvalonEdit/5.0.1/AvalonEdit-5.0.1/Rendering/DefaultTextRunTypographyProperties.cs @ 17507

Last change on this file since 17507 was 11700, checked in by jkarder, 10 years ago

#2077: created branch and added first version

File size: 5.3 KB
Line 
1// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
2//
3// Permission is hereby granted, free of charge, to any person obtaining a copy of this
4// software and associated documentation files (the "Software"), to deal in the Software
5// without restriction, including without limitation the rights to use, copy, modify, merge,
6// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
7// to whom the Software is furnished to do so, subject to the following conditions:
8//
9// The above copyright notice and this permission notice shall be included in all copies or
10// substantial portions of the Software.
11//
12// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
17// DEALINGS IN THE SOFTWARE.
18
19using System;
20using System.Windows;
21using System.Windows.Media.TextFormatting;
22
23namespace ICSharpCode.AvalonEdit.Rendering
24{
25  /// <summary>
26  /// Default implementation for TextRunTypographyProperties.
27  /// </summary>
28  public class DefaultTextRunTypographyProperties : TextRunTypographyProperties
29  {
30    /// <inheritdoc/>
31    public override FontVariants Variants {
32      get { return FontVariants.Normal; }
33    }
34   
35    /// <inheritdoc/>
36    public override bool StylisticSet1 { get { return false; } }
37    /// <inheritdoc/>
38    public override bool StylisticSet2 { get { return false; } }
39    /// <inheritdoc/>
40    public override bool StylisticSet3 { get { return false; } }
41    /// <inheritdoc/>
42    public override bool StylisticSet4 { get { return false; } }
43    /// <inheritdoc/>
44    public override bool StylisticSet5 { get { return false; } }
45    /// <inheritdoc/>
46    public override bool StylisticSet6 { get { return false; } }
47    /// <inheritdoc/>
48    public override bool StylisticSet7 { get { return false; } }
49    /// <inheritdoc/>
50    public override bool StylisticSet8 { get { return false; } }
51    /// <inheritdoc/>
52    public override bool StylisticSet9 { get { return false; } }
53    /// <inheritdoc/>
54    public override bool StylisticSet10 { get { return false; } }
55    /// <inheritdoc/>
56    public override bool StylisticSet11 { get { return false; } }
57    /// <inheritdoc/>
58    public override bool StylisticSet12 { get { return false; } }
59    /// <inheritdoc/>
60    public override bool StylisticSet13 { get { return false; } }
61    /// <inheritdoc/>
62    public override bool StylisticSet14 { get { return false; } }
63    /// <inheritdoc/>
64    public override bool StylisticSet15 { get { return false; } }
65    /// <inheritdoc/>
66    public override bool StylisticSet16 { get { return false; } }
67    /// <inheritdoc/>
68    public override bool StylisticSet17 { get { return false; } }
69    /// <inheritdoc/>
70    public override bool StylisticSet18 { get { return false; } }
71    /// <inheritdoc/>
72    public override bool StylisticSet19 { get { return false; } }
73    /// <inheritdoc/>
74    public override bool StylisticSet20 { get { return false; } }
75   
76    /// <inheritdoc/>
77    public override int StylisticAlternates {
78      get { return 0; }
79    }
80   
81    /// <inheritdoc/>
82    public override int StandardSwashes {
83      get { return 0; }
84    }
85   
86    /// <inheritdoc/>
87    public override bool StandardLigatures {
88      get { return true; }
89    }
90   
91    /// <inheritdoc/>
92    public override bool SlashedZero {
93      get { return false; }
94    }
95   
96    /// <inheritdoc/>
97    public override FontNumeralStyle NumeralStyle {
98      get { return FontNumeralStyle.Normal; }
99    }
100   
101    /// <inheritdoc/>
102    public override FontNumeralAlignment NumeralAlignment {
103      get { return FontNumeralAlignment.Normal; }
104    }
105   
106    /// <inheritdoc/>
107    public override bool MathematicalGreek {
108      get { return false; }
109    }
110   
111    /// <inheritdoc/>
112    public override bool Kerning {
113      get { return true; }
114    }
115   
116    /// <inheritdoc/>
117    public override bool HistoricalLigatures {
118      get { return false; }
119    }
120   
121    /// <inheritdoc/>
122    public override bool HistoricalForms {
123      get { return false; }
124    }
125   
126    /// <inheritdoc/>
127    public override FontFraction Fraction {
128      get { return FontFraction.Normal; }
129    }
130   
131    /// <inheritdoc/>
132    public override FontEastAsianWidths EastAsianWidths {
133      get { return FontEastAsianWidths.Normal; }
134    }
135   
136    /// <inheritdoc/>
137    public override FontEastAsianLanguage EastAsianLanguage {
138      get { return FontEastAsianLanguage.Normal; }
139    }
140   
141    /// <inheritdoc/>
142    public override bool EastAsianExpertForms {
143      get { return false; }
144    }
145   
146    /// <inheritdoc/>
147    public override bool DiscretionaryLigatures {
148      get { return false; }
149    }
150   
151    /// <inheritdoc/>
152    public override int ContextualSwashes {
153      get { return 0; }
154    }
155   
156    /// <inheritdoc/>
157    public override bool ContextualLigatures {
158      get { return true; }
159    }
160   
161    /// <inheritdoc/>
162    public override bool ContextualAlternates {
163      get { return true; }
164    }
165   
166    /// <inheritdoc/>
167    public override bool CaseSensitiveForms {
168      get { return false; }
169    }
170   
171    /// <inheritdoc/>
172    public override bool CapitalSpacing {
173      get { return false; }
174    }
175   
176    /// <inheritdoc/>
177    public override FontCapitals Capitals {
178      get { return FontCapitals.Normal; }
179    }
180   
181    /// <inheritdoc/>
182    public override int AnnotationAlternates {
183      get { return 0; }
184    }
185  }
186}
Note: See TracBrowser for help on using the repository browser.