Skip to content

Cant find how change list numbering font-size and font-family? #2610

@idem84

Description

@idem84

Describe the Bug

In section class method addListItem i can change text style and paragraph style, but this styles not apply on list numbering.

Steps to Reproduce

Install version 1.2.0, php 7.4

<?php
$section->addListItem($responsibilitiesItem, 0, ['name' => 'Times New Roman', 'size' => '14'], ListItem::TYPE_NUMBER, ['align' => 'both', 'font' => 'Times New Roman', 'fontSize' => 14, 'spaceBefore' => 50, 'spaceafter' => 50, 'firstLineIndent' => 10, 'hanging' => -1, 'indentLeft' => 100, 'headingLevel' => 1]);

In docx template i got font family Times New Roman and font-size 14px, also i add this styles in addListItem method, but on list numbering i got font size 10px and font-family: Arial, why?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions