PlantUML crash report

0 votes
asked Aug 26, 2025 in Bug by Speeder
commented Sep 19, 2025 by kirchsth (7,760 points)
edited Sep 19, 2025 by kirchsth

Hi Speeder,

>    FontColor #?black:white

why do you
a) have a ? in your color?    ==> this produced the error
b) combine # with a concrete color name;   eg. I would only use  #FF00FF
c) define 2 font colors? 

I know you can use 2 colors for the background like below

BR Helmut

@startuml
<style>
component {
    FontColor darkred
    BackgroundColor #FFFFCC/gold
}
</style>
legend right
| Table |
endlegend
component teszti
@enduml

 

commented Sep 20, 2025 by Speeder
Hello BR Helmut,

Thank you for your answer. Please find the documentation on the syntax I used in the diagram here:
https://plantuml.com/color#:~:text=PlantUML%20allows%20dynamic%20font%20color%20selection%20using%20the%20#?%20syntax.

Best regards,
commented Sep 20, 2025 by kirchsth (7,760 points)

Hi Speeder,

the problem is that tables cannot be combined with automatic font colors at all

@startuml
<style>
document {
  BackGroundColor darkblue
}
root {
  FontColor #?black:white
  LineColor white
}
</style>

' table with #? not working
' actor "|table|" as alice
actor "no table" as alice

alice -> bob : hello
@enduml


I created a Github issue: Tables cannot be combined with "Automatic Font Colors" (#?) · Issue #2350 · plantuml/plantuml 

BR Helmut

1 Answer

0 votes
answered Sep 20, 2025 by Speeder
Yes, that is the problem I raised the topic about. Thanks for creating the github issue :) I will track that
commented Jan 22 by The-Lu (87,240 points)

FYI that is now fixed from V1.2026.0.

Regards,
Th.

...