Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
idem84 opened this issue May 15, 2024 · 0 comments
Open

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

idem84 opened this issue May 15, 2024 · 0 comments

Comments

@idem84
Copy link

idem84 commented May 15, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant