private void ChangeFontTypeface_Click(object sender, EventArgs e) { Redo: try { FontTypeface.Font = Properties.Settings.Default.CounterFont; if (FontTypeface.ShowDialog() == DialogResult.OK) { try { Properties.Settings.Default.CounterFont = FontTypeface.Font; Properties.Settings.Default.Save(); Data.OsuemSize = Properties.Settings.Default.CounterFont.Size; PushFrame(true); } catch { MessageBox.Show("Error."); goto Redo; } } } catch { MessageBox.Show("You can only use TrueType fonts!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); goto Redo; } }
public void Create(FontTypeface face, float size, FontDecoration decoration) { typeface = face; Control = ((FontTypefaceHandler)face.Handler).Control.Describe(); Size = size; FontDecoration = decoration; }
public void Create(FontTypeface face, float size, FontDecoration decoration) { typeface = face; family = face.Family; Control = ((FontTypefaceHandler)face.Handler).CreateFont(size); this.decoration = decoration; }
public static Pango.FontFace ToPango(this FontTypeface typeface) { if (typeface == null) { return(null); } return(((FontTypefaceHandler)typeface.Handler).Control); }
public void Create(FontTypeface typeface, float size, FontDecoration decoration) { this.typeface = typeface; var familyHandler = (FontFamilyHandler)typeface.Family.Handler; Control = new sd.Font(familyHandler.Control, size, typeface.FontStyle.ToSD() | decoration.ToSD()); }
public void Create(FontTypeface typeface, float size) { this.typeface = typeface; this.Family = typeface.Family; this.Size = size; this.WpfFontWeight = WpfTypeface.Weight; this.WpfFontStyle = WpfTypeface.Style; }
public void Create(FontTypeface typeface, float size, FontDecoration decoration) { this.typeface = typeface; Family = typeface.Family; Size = size; WpfFontWeight = WpfTypeface.Weight; WpfFontStyle = WpfTypeface.Style; SetDecorations(decoration); }
public void SetTypeface(Range <int> range, FontTypeface typeface) { var pangoFace = typeface.ToPango(); ApplyTag(FamilyTagPrefix, pangoFace.FaceName, range, tag => { tag.Family = pangoFace.FaceName; tag.FamilySet = true; }); Callback.OnTextChanged(Widget, EventArgs.Empty); }
public void Create(FontTypeface typeface, float size, FontDecoration decoration) { family = typeface.Family; this.typeface = typeface; var typefaceHandler = (FontTypefaceHandler)typeface.Handler; Control = typefaceHandler.Font; FontStyle = Control.ToEtoStyle(); FontDecoration = decoration; Size = size; }
public void Create(FontTypeface typeface, float size) { this.typeface = typeface; Control = new SD.Font(typeface.Family.Name, size, typeface.FontStyle.ToSD()); }
public static sd.FontStyle ToSD(this FontTypeface typeface) { return(FontTypefaceHandler.GetControl(typeface)); }
public void Create(FontTypeface typeface, float size, FontDecoration decoration) { this.size = size; this.Control = ag.Typeface.Create(typeface.Family.Name, typeface.FontStyle.ToAndroid()); }
public void Create(FontTypeface typeface, float size, FontDecoration decoration) { Typeface = typeface; Size = size; FontDecoration = decoration; }
public static sd.Font ToSDFont(this FontTypeface typeface, float size) { return(new sd.Font(typeface.Family.ToSD(), size, typeface.ToSD())); }
public void Create(FontTypeface face, float size) { this.face = face; Control = ((FontTypefaceHandler)face.Handler).Control.Describe(); Size = size; }
public void SetTypeface(Range <int> range, FontTypeface typeface) { var typefaceName = ((FontTypefaceHandler)typeface.Handler).Name; SetFontAttribute(range.ToNS(), true, font => NSFontManager.SharedFontManager.ConvertFont(font, typefaceName)); }
public void Create(FontTypeface face, float size) { this.face = face; this.family = face.Family; this.Control = ((FontTypefaceHandler)face.Handler).CreateFont(size); }
public void Create(FontTypeface typeface, float sizeInPoints) { this.sizeInPoints = sizeInPoints; Create(typeface.Name, sizeInPoints, typeface.FontStyle); }