box/spout

Automatically calculate columns width / rows height

开放

#129 创建于 2015年10月22日

 (60 条评论) (39 个反应) (0 位负责人)PHP (637 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (4,231 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Instead of using the default width/height, Spout could calculate the optimal width/height for each cell, based on its content.

This involves using a graphics library, render the text content with the chosen font and get the width/height of the rendered text.

This calculation may be slow so it should be optional. It can also be used when using "wrap text" as wrapping does not work well without a custom row height in LibreOffice.

Spout should expose an option to automatically set the optimal width/height but should also allow developers to specify a max width / height. When the max width is reached, the content will automatically wrap and the cell height will increase. It will increase until it reaches the max height.

贡献者指南