mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
26 lines
541 B
C#
26 lines
541 B
C#
namespace UglyToad.Pdf.Graphics.Operations.TextState
|
|
{
|
|
using Cos;
|
|
|
|
internal class SetFontSize : IGraphicsStateOperation
|
|
{
|
|
public const string Symbol = "Tf";
|
|
|
|
public string Operator => Symbol;
|
|
|
|
public CosName Font { get; }
|
|
|
|
public decimal Size { get; }
|
|
|
|
public SetFontSize(CosName font, decimal size)
|
|
{
|
|
Font = font;
|
|
Size = size;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Font} {Size} {Symbol}";
|
|
}
|
|
}
|
|
} |