I noticed that in a timing diagram (https://plantuml.com/timing-diagram), the DefaultFontName is not applied to time constraints (i.e. the text above the arrow). Is there a way to change the font name and size for these elements?
Plantuml supports quite a few font name changes:
ActivityDiamondFontName ActivityFontName ActorFontName ActorStereotypeFontName AgentFontName AgentStereotypeFontName ArchimateFontName ArchimateStereotypeFontName ArrowFontName ArtifactFontName ArtifactStereotypeFontName BoundaryFontName BoundaryStereotypeFontName CaptionFontName CardFontName CardStereotypeFontName CircledCharacterFontName ClassAttributeFontName ClassFontName ClassStereotypeFontName CloudFontName CloudStereotypeFontName ComponentFontName ComponentStereotypeFontName ControlFontName ControlStereotypeFontName DatabaseFontName DatabaseStereotypeFontName DefaultFontName DefaultMonospacedFontName DesignedDomainFontName DesignedDomainStereotypeFontName DomainFontName DomainStereotypeFontName EntityFontName EntityStereotypeFontName FileFontName FileStereotypeFontName FolderFontName FolderStereotypeFontName FooterFontName FrameFontName FrameStereotypeFontName HeaderFontName InterfaceFontName InterfaceStereotypeFontName LegendFontName MachineFontName MachineStereotypeFontName NodeFontName NodeStereotypeFontName NoteFontName ObjectAttributeFontName ObjectFontName ObjectStereotypeFontName PackageFontName PackageStereotypeFontName ParticipantFontName ParticipantStereotypeFontName PartitionFontName QueueFontName QueueStereotypeFontName RectangleFontName RectangleStereotypeFontName RequirementFontName RequirementStereotypeFontName SequenceBoxFontName SequenceDelayFontName SequenceDividerFontName SequenceGroupFontName SequenceGroupHeaderFontName SequenceReferenceFontName SequenceStereotypeFontName StackFontName StackStereotypeFontName StateAttributeFontName StateFontName StorageFontName StorageStereotypeFontName SwimlaneTitleFontName TimingFontName TitleFontName UsecaseFontName UsecaseStereotypeFontName
To help you better (I don't see the wrong font, might be my interpretation of the characters though):
Thanks Albert,
Yes I was aware of the skinparams and tried quite a few. I'd expect DefaultFontName to apply globally.
I am using the latest PyCharm PlantUML plugin.
This is an example (after rendering, the text over the arrows will not adopt the font):
@startuml skinparam DefaultFontName Gill Sans MT skinparam DefaultMonospacedFontName Gill Sans MT robust "Web Browser" as WB concise "Web User" as WU WB is Initializing WU is Absent @WB 0 is idle +200 is Processing +100 is Waiting WB@0 <-> @50 : 50 ms lag @WU 0 is Waiting +500 is ok @200 <-> @+150 : 150 ms @enduml
I did some analysis on the problem (it is hard to spot when one is not that good in knowing what to look for). I generated, locally, a svg image and in here I see:
<text fill="#000000" font-family="Serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="55" x="129" y="88.3105">50 ms lag</text> ... <text fill="#000000" font-family="Serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="42" x="260.5" y="165.3242">150 ms</text>
whilst other text lines look like:
<text fill="#000000" font-family="Gill Sans MT" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="60" x="239" y="204.1387">Waiting</text>
so I do see a difference for the "m" and "n" indicating the problem.
Note that the problem also is present for the:
skinparam DefaultFontSize 18
I used: PlantUML version 1.2020.07beta7
(--------)