Example #1
0
		internal void AddFont(System.Drawing.Font f)
		{
			string name=PdfFont.FontToPdfType(f);
			
			PdfFont pf=new PdfFont(name,name);
			if (!this.ContainsFont(pf)) 
			{
				pf.ID=this.GetNextId;
				this.AddPdfObject(pf);
			}
		}
Example #2
0
		internal bool ContainsFont(PdfFont pf)
		{
			bool r=false;
			foreach (PdfFont pf2 in this.FontList)
			{
				if (pf2.Name==pf.Name) r=true;
			}
			return r;
		}