本文整理汇总了PHP中unknown_type::setFont方法的典型用法代码示例。如果您正苦于以下问题:PHP unknown_type::setFont方法的具体用法?PHP unknown_type::setFont怎么用?PHP unknown_type::setFont使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类unknown_type
的用法示例。
在下文中一共展示了unknown_type::setFont方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: drawTableHeader
/**
* Dessine l'entete du tableau avec la liste des produits
*
* @param unknown_type $page
*/
public function drawTableHeader(&$page)
{
//entetes de colonnes
$this->y -= 15;
$page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 12);
$page->drawText(mage::helper('purchase')->__('Qty'), 15, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('Manufacturer'), 70, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('Sku'), 180, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('Product'), 310, $this->y, 'UTF-8');
//barre grise fin entete colonnes
$this->y -= 8;
$page->drawLine(10, $this->y, $this->_BLOC_ENTETE_LARGEUR, $this->y);
$this->y -= 15;
}
示例2: drawFooter
/**
* Dessine le pied de page
*
* @param unknown_type $page
*/
public function drawFooter(&$page)
{
//fond du pied de page
$page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 10);
$page->setFillColor(new Zend_Pdf_Color_GrayScale(0.7));
$page->drawRectangle(10, $this->_BLOC_FOOTER_HAUTEUR + 15, $this->_BLOC_FOOTER_LARGEUR, 15, Zend_Pdf_Page::SHAPE_DRAW_FILL);
//rajoute le texte
$page->setFillColor(new Zend_Pdf_Color_GrayScale(0.2));
$this->DrawMultilineText($page, Mage::getStoreConfig('purchase/general/footer_text'), 20, $this->_BLOC_FOOTER_HAUTEUR, 10, 0, 15);
}
示例3: drawTableHeader
/**
* Dessine l'entete du tableau avec la liste des produits
*
* @param unknown_type $page
*/
public function drawTableHeader(&$page)
{
//entetes de colonnes
$this->y -= 15;
$page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 10);
$page->drawText(mage::helper('purchase')->__('SKU'), 15, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('Model #'), 80, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('Description'), 160, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('HTS code'), 300, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('Unit Price'), 440, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('Qty'), 390, $this->y, 'UTF-8');
//$page->drawText(mage::helper('purchase')->__('WEEE'), 365, $this->y, 'UTF-8');
//$page->drawText(mage::helper('purchase')->__('Tax'), 410, $this->y, 'UTF-8');
$page->drawText(mage::helper('purchase')->__('Total HT'), 510, $this->y, 'UTF-8');
//$page->drawText(mage::helper('purchase')->__('Total + Duty'), 530, $this->y, 'UTF-8');
//barre grise fin entete colonnes
$this->y -= 8;
$page->drawLine(10, $this->y, $this->_BLOC_ENTETE_LARGEUR, $this->y);
$this->y -= 15;
}