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

[page1] Enable string_width in RTFText object #1

Open
nanxstats opened this issue Jan 29, 2025 · 0 comments
Open

[page1] Enable string_width in RTFText object #1

nanxstats opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nanxstats
Copy link
Collaborator

We will need to calculate the string width based on information in the RTFText object.

Current code

text = RTFText("abc")
text.__dict__

Example in R for a text string with all attributes.

teststr 
[1] "title"
attr(,"text_font")
[1] 1
attr(,"text_font_size")
[1] 12
attr(,"text_justification")
[1] "c"
attr(,"text_space")
[1] 1
attr(,"text_space_before")
[1] 180
attr(,"text_space_after")
[1] 180
attr(,"text_indent_first")
[1] 0
attr(,"text_indent_left")
[1] 0
attr(,"text_indent_right")
[1] 0
attr(,"text_new_page")
[1] FALSE
attr(,"text_hyphenation")
[1] TRUE
attr(,"text_convert")
[1] TRUE
attr(,"strwidth")
[1] 0.2604167
attr(,"use_color")
[1] FALSE
attr(,"class")
[1] "character" "rtf_text" 
@nanxstats nanxstats added the enhancement New feature or request label Jan 29, 2025
@nanxstats nanxstats mentioned this issue Jan 29, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants