function Font(parent) {
	this.parent=parent
	this.font=new Observable(null)
	this.info=null

	// Functions
	this.getLicenseUrl=getLicenseUrl_fnct
	this.getSRC=getSRC_fnct
	this.getPrice=getPrice_fnct
	this.getFeatures=getFeatures_fnct
	this.getFonts4Set=getFonts4Set_fnct
	this.getPDF=getPDF_fnct
	this.getOrderOptions=getOrderOptions_fnct	
}

function getLicenseUrl_fnct() {
	return this.info[0]
};

function getSRC_fnct() {
	return this.info[1]
};

function getPrice_fnct() {
	return this.info[2]
};

function getFeatures_fnct() {
	if (!this.info[3]) return;

	var li=this.info[3].split(',')
	var features=new Object()

	for (var i=0;i<li.length;i++) {
		var f=li[i]
		var sp=f.split(':')

		if (sp.length>1) {
			features[f]=sp[0]
		} else {
			features[f]=f
		};
	};

	return features
};

function getFonts4Set_fnct() {
	if (!this.info[4]) return;

	var li=this.info[4].split(',')
	var fonts=new Object()

	fonts['p']=new Array() // Pro Array
	fonts['s']=new Array() // Singles Array


	for (var i=0;i<li.length;i++) {
		var f=li[i].split(';')

		if (f[0]=='p') {
			var x=fonts['p'].length
			fonts['p'][x]=f[1]

		} else { // f[0]=='s'	
			var x=fonts['s'].length
			fonts['s'][x]=f[1]

		};
	}

	return fonts
};

function getPDF_fnct() {
	return this.info[5]
};

function getOrderOptions_fnct() {
	return this.info[6]
};

