我有一个问题,我有 2 个链接块。一旦有最大字符(在它们缩小以适应之前),它就会移动到我的下一个链接块。问题是,如果有很多文本被推送到下一个块,它就会变得非常小。有没有办法将所有字符和每个盒子平均划分?即使它缩小也没关系,只需要看起来一样。以下示例的图像和代码:
http://i.imgur.com/ytadphF.png
public function addTextToMultiBlock($text,$baseBlockName,$numberOfBlocks)
{
$tf = 0;
for ($i = 1; $i <= $numberOfBlocks; $i++)
{
$optlist ="encoding=unicode textflowhandle=" . $tf;
$tf = $this->p->fill_textblock($this->page, $baseBlockName.$i, $text, $optlist);
//Set text to null ( $tf handle holds extra text from now on )
$text = null;
if ($tf == 0) {
trigger_error("Warning: " . $this->p->get_errmsg() . "\n");
break;
}
$reason = (int) $this->p->info_textflow($tf, "returnreason");
$result = $this->p->get_parameter("string", $reason);
//Break if all text is placed
if ($result == "_stop")
{
$this->p->delete_textflow($tf);
break;
}
}
}
//call below to block
if(!empty($this->orderData->remarks))
{
$addRemarks.= $this->orderData->remarks;
$helper->addTextToMultiBlock($this->orderData->remarks, 'info', 2);
}
else
{
//nothing
}