protected override RFont CreateFontInt(RFontFamily family, double size, RFontStyle style) { var fontStyle = (XFontStyle)((int)style); var xFont = new XFont(((FontFamilyAdapter)family).FontFamily.Name, size, fontStyle, new XPdfFontOptions(PdfFontEncoding.Unicode)); return(new FontAdapter(xFont)); }
protected override RFont CreateFontInt(RFontFamily family, double size, RFontStyle style) { return(new FontAdapter(family.Name, size, style)); }
protected override RFont CreateFontInt(RFontFamily family, double size, RFontStyle style) { var fontStyle = (FontStyle)((int)style); return(new FontAdapter(new Font(((FontFamilyAdapter)family).FontFamily, (float)size, fontStyle))); }
/// <summary> /// Adds a font family to be used. /// </summary> /// <param name="fontFamily">The font family to add.</param> public void AddFontFamily(RFontFamily fontFamily) { ArgChecker.AssertArgNotNull(fontFamily, "family"); this._existingFontFamilies[fontFamily.Name] = fontFamily; }
/// <summary> /// Adds a font family to be used. /// </summary> /// <param name="fontFamily">The font family to add.</param> public void AddFontFamily(RFontFamily fontFamily) { ArgChecker.AssertArgNotNull(fontFamily, "family"); _existingFontFamilies[fontFamily.Name.ToLower()] = fontFamily; }
protected override RFont CreateFontInt(RFontFamily family, double size, RFontStyle style) { return(new FontAdapter(new Typeface(((FontFamilyAdapter)family).FontFamily, GetFontStyle(style), GetFontWidth(style), FontStretches.Normal), size)); }
protected override RFont CreateFontInt(RFontFamily family, double size, RFontStyle style) { // var fontStyle = (FontStyle) ((int) style); // return new FontAdapter(new SKFont(((FontFamilyAdapter) family).FontFamily, (float) size, fontStyle)); return(new FontAdapter(new SKFont(SKTypeface.FromFamilyName(family.Name, DJKJLAW(style)), (float)size * 1.1f))); }