Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Styled font size is ignored on empty cells #838

Open
PeteAUK opened this issue Nov 1, 2021 · 0 comments
Open

Styled font size is ignored on empty cells #838

PeteAUK opened this issue Nov 1, 2021 · 0 comments

Comments

@PeteAUK
Copy link

PeteAUK commented Nov 1, 2021

Am setting my default style as follows

		$style_default = (new StyleBuilder())
			->setFontName('Calibri')
			->setFontSize(11)
			->build();

		$writer = WriterEntityFactory::createXLSXWriter();
		$writer
			->openToBrowser($workbook_name . '.xlsx')
			->setDefaultRowStyle($style_default);

However, any cell added that has no content (WriterEntityFactory::createCell('')) is using the default font-size of 12 pt rather than my preset default of 11. Adding a space (WriterEntityFactory::createCell(' ')) will use the correct font (but then you have a cell with a textual space in)

Explicitly setting the style also does not work WriterEntityFactory::createCell('', $style_default)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant