简体   繁体   English

在php csv输出中更改字体大小

[英]Change font size in php csv output

I have no idea how to change the font size for a specific code, since it has no echo etc. This is a module in Prestashop 1.5 and its php. 我不知道如何更改特定代码的字体大小,因为它没有回声等。这是Prestashop 1.5及其php中的模块。 All text in the code below should be font size 18, currently its 10.. 以下代码中的所有文本均应为字体大小18,当前为10。

    $addressdata .= ''.chr(13).chr(13);
        $addressdata .= utf8_encode((strlen(str_replace('-','',$address->company))>0 ? $address->company.chr(13) : ''));
        $addressdata .= utf8_encode($address->firstname.' '.$address->lastname.chr(13));
        $addressdata .= utf8_encode($address->address1.chr(13));
        $addressdata .= utf8_encode((strlen(str_replace('-','',$address->address2))>0 ? $address->address2.chr(13) : ''));
        $addressdata .= utf8_encode($address->postcode.' '.$address->city.chr(13));
        $addressdata .= $this->getCountryName($address->id_country, $order->id_lang).chr(13).chr(13);
        $addressdata .= ''.chr(13).chr(13);

You can not do formatting with CSV (font-size, color, etc ...). 您无法使用CSV格式(字体大小,颜色等)进行格式化。 If you want to do the formatting you can use this biletec to generate XLS https://phpexcel.codeplex.com/ 如果您要进行格式化,则可以使用此biletec生成XLS https://phpexcel.codeplex.com/

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM