Beispiel #1
0
		internal static IfcTextStyleFontModel Parse(string strDef) { IfcTextStyleFontModel f = new IfcTextStyleFontModel(); int ipos = 0; parseFields(f, ParserSTEP.SplitLineFields(strDef), ref ipos); return f; }
Beispiel #2
0
		internal static void parseFields(IfcTextStyleFontModel f, List<string> arrFields, ref int ipos)
		{
			IfcPreDefinedTextFont.parseFields(f, arrFields, ref ipos);
			string s = arrFields[ipos++];
			if (s != "$")
			{
				List<string> lst = ParserSTEP.SplitLineFields(s.Substring(1, s.Length - 2));
				for (int icounter = 0; icounter < lst.Count; icounter++)
					f.mFontFamily.Add(lst[icounter]);
			}
			f.mFontStyle = arrFields[ipos++];
			f.mFontVariant = arrFields[ipos++];
			f.mFontWeight = arrFields[ipos++];
			f.mFontSize = arrFields[ipos++];
		}
Beispiel #3
0
		internal IfcTextStyleFontModel(IfcTextStyleFontModel i)
			: base(i)
		{
			mFontFamily = new List<string>(i.mFontFamily.ToArray());
			mFontStyle = i.mFontStyle;
			mFontVariant = i.mFontVariant;
			mFontWeight = i.mFontWeight;
			mFontSize = i.mFontSize;
		}