+2005-11-13 Konstantin Triger <kostat@mainsoft.com>
+
+ * FontFamily.jvm.cs: DrawMargin, refactoring.
+
2005-11-13 Konstantin Triger <kostat@mainsoft.com>
* Graphics.jvm.cs, Pen.jvm.cs, AdvancedStroke.jvm.cs:
// this is unavailable through Java API, usually 2048 for TT fonts
const int UnitsPerEm = 2048;
+ // the margin for text drawing
+ const int DrawMargin = 571;
#region ctors
}
}
+ internal int GetDrawMargin(FontStyle style) {
+ return DrawMargin;
+ }
+
awt.FontMetrics GetMetrics(FontStyle style) {
if ((_lastStyle != style) || (_fontMetrics == null)) {
java.util.Map attrib = Font.DeriveStyle( FamilyFont.getAttributes(), style, true);
}
public string GetName(int language) {
- CultureInfo culture;
- java.util.Locale locale;
- try {
- culture = new CultureInfo(language, false);
- locale = vmw.@internal.EnvironmentUtils.getLocaleFromCultureInfo( culture );
- }
- catch(Exception) {
- locale = new java.util.Locale("en");
- }
+ CultureInfo culture = new CultureInfo(language, false);
+ java.util.Locale locale = vmw.@internal.EnvironmentUtils.getLocaleFromCultureInfo( culture );
+
return FamilyFont.getFamily( locale );
}