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

No documentation on how to change font size of each elements individually (e.g. technology, relationship text) #291

Closed
ProtoSlayer opened this issue Mar 3, 2023 · 3 comments
Assignees
Labels
Documentation not-stale Stop issue from being marked stale by bot
Milestone

Comments

@ProtoSlayer
Copy link

Hello,
I cannot find any documentation or functionality on how to change the font size for relationships or any element individually.
When using "skinparam DefaultFontSize 20" the text of the relationship and technology is not effected.

@Potherca Potherca self-assigned this Mar 9, 2023
@Potherca
Copy link
Member

Potherca commented Mar 9, 2023

Hello! Thank you for reporting this. We do indeed seem to be lacking documentation in regards to fonts.
I'll see what can be done.

@Potherca Potherca added not-stale Stop issue from being marked stale by bot Documentation labels Mar 9, 2023
@Potherca Potherca added this to the v2.6.0 milestone Mar 9, 2023
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Mar 14, 2023
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Mar 14, 2023
@kirchsth
Copy link
Contributor

Hi @ProtoSlayer,

I created a PR #295 that you can define themes and change the technology and relationship text size too (like in the https://github.com/kirchsth/C4-PlantUML/blob/extended/themes/puml-theme-C4_FirstTest.puml).

If you set $TECHN_FONT_SIZE or $ARROW_FONT_SIZE before the "normal" C4_* files are loaded you can overwrite the size. Can you please see/check it there if it works for you.

Thank you and best regards
Helmut

kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Mar 25, 2023
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Mar 26, 2023
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Apr 1, 2023
… - update themes/add overview, fix PR findings)
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Apr 2, 2023
kirchsth added a commit that referenced this issue Apr 3, 2023
@kirchsth
Copy link
Contributor

kirchsth commented Apr 3, 2023

Hi @ProtoSlayer,

the PR #295 is merged into master. Now you can use and define your theme (e.g. with your noted skinparam DefaultFontSize 20). Additional I extracted all internal used constants that you can overwrite them as part of your themes file or before you include the C4_* files (a complete list of all values see here).

@startuml
' !theme C4_united from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes

' could be moved into an e.g. theme file
skinparam DefaultFontSize 20
!$STEREOTYPE_FONT_SIZE = 30
!$PERSON_BG_COLOR = red

!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

Person(admin, "Administrator")
System_Boundary(c1, "Sample System") {
    Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines")
}
System(twitter, "Twitter")

Rel(admin, web_app, "Uses", "HTTPS")
Rel(web_app, twitter, "Gets tweets from", "HTTPS")

SHOW_LEGEND(false)
@enduml

BR Helmut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation not-stale Stop issue from being marked stale by bot
Projects
Status: Done
Development

No branches or pull requests

3 participants