@@ -11,8 +11,7 @@ internal sealed class OS2Table
1111 {
1212 internal const string TableName = "OS/2" ;
1313 internal static OpenTypeTag Tag = OpenTypeTag . Parse ( TableName ) ;
14-
15- private readonly ushort styleType ;
14+
1615 private readonly byte [ ] panose ;
1716 private readonly short capHeight ;
1817 private readonly short familyClass ;
@@ -31,8 +30,6 @@ internal sealed class OS2Table
3130 private readonly ushort lowerOpticalPointSize ;
3231 private readonly ushort maxContext ;
3332 private readonly ushort upperOpticalPointSize ;
34- private readonly ushort weightClass ;
35- private readonly ushort widthClass ;
3633 private readonly short averageCharWidth ;
3734
3835 public OS2Table (
@@ -67,9 +64,9 @@ public OS2Table(
6764 ushort winDescent )
6865 {
6966 this . averageCharWidth = averageCharWidth ;
70- this . weightClass = weightClass ;
71- this . widthClass = widthClass ;
72- this . styleType = styleType ;
67+ WeightClass = weightClass ;
68+ WidthClass = widthClass ;
69+ StyleType = styleType ;
7370 SubscriptXSize = subscriptXSize ;
7471 SubscriptYSize = subscriptYSize ;
7572 SubscriptXOffset = subscriptXOffset ;
@@ -108,9 +105,9 @@ public OS2Table(
108105 ushort maxContext )
109106 : this (
110107 version0Table . averageCharWidth ,
111- version0Table . weightClass ,
112- version0Table . widthClass ,
113- version0Table . styleType ,
108+ version0Table . WeightClass ,
109+ version0Table . WidthClass ,
110+ version0Table . StyleType ,
114111 version0Table . SubscriptXSize ,
115112 version0Table . SubscriptYSize ,
116113 version0Table . SubscriptXOffset ,
@@ -249,6 +246,12 @@ internal enum FontStyleSelection : ushort
249246
250247 public short SuperscriptYSize { get ; }
251248
249+ public ushort StyleType { get ; }
250+
251+ public ushort WeightClass { get ; }
252+
253+ public ushort WidthClass { get ; }
254+
252255 public static OS2Table ? Load ( IGlyphTypeface glyphTypeface )
253256 {
254257 if ( ! glyphTypeface . TryGetTable ( Tag , out var table ) )
0 commit comments