Removed SvgRtf

This commit is contained in:
Rich
2010-05-19 14:55:31 +00:00
parent 4e85f82557
commit 21f32e3434
3 changed files with 170 additions and 170 deletions

View File

@@ -130,23 +130,23 @@ namespace Volian.Svg.Library
graphics.DrawRectangle(pen, scale.X(X),scale.Y(Y), scale.M(Width), scale.M(Height));
}
}
public partial class SvgRtf : SvgShapePart
{
//private static float _Factor = 1.085F; // 20 point Arial Font
public override void Draw(System.Drawing.Graphics graphics, SvgScale scale, Svg mySvg, SvgPartInheritance myParent)
{
SetupInheritance(myParent.MyInheritedSettings);
_MyFontSettings.Scale = scale.M(1F);
}
private float YAdjustment(Graphics gr, Font fnt)
{
int yAsc = fnt.FontFamily.GetCellAscent(fnt.Style);
int yLS = fnt.FontFamily.GetLineSpacing(fnt.Style);
float gth = fnt.GetHeight(gr);
float fAsc = (yAsc * gth) / yLS;
return -fAsc;
}
}
//public partial class SvgRtf : SvgShapePart
//{
// //private static float _Factor = 1.085F; // 20 point Arial Font
// public override void Draw(System.Drawing.Graphics graphics, SvgScale scale, Svg mySvg, SvgPartInheritance myParent)
// {
// SetupInheritance(myParent.MyInheritedSettings);
// _MyFontSettings.Scale = scale.M(1F);
// }
// private float YAdjustment(Graphics gr, Font fnt)
// {
// int yAsc = fnt.FontFamily.GetCellAscent(fnt.Style);
// int yLS = fnt.FontFamily.GetLineSpacing(fnt.Style);
// float gth = fnt.GetHeight(gr);
// float fAsc = (yAsc * gth) / yLS;
// return -fAsc;
// }
//}
public partial class SvgText : SvgShapePart
{
//private static float _Factor = 1.085F; // 20 point Arial Font