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

Styled font size is ignored on empty cells #838

@PeteAUK

Description

@PeteAUK

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions