does plantuml .3 in python font modification via the skinparam?

0 votes
asked Jun 1 in Question / help by pleabargain (120 points)

I have tried to modify the font size but saw no change. 

Does plantuml .3 support font modification?

Here's the colab notebook with the full working code.

https://github.com/pleabargain/ipynb/blob/master/plantuml_0_3_font_size_is_NOT_respected.ipynb

1 Answer

0 votes
answered Jun 1 by The-Lu (33,360 points)
edited Jun 1 by The-Lu

Hello P.,


1/ With your code and the PlantUML online server:

On gantt diagram, from:

skinparam classFontColor red
skinparam classFontSize 40


If you would change the font size of Gantt diagram, you must change gantt font size (not class font size), and not by skinparam but nowadays by style, as:

<style>
ganttDiagram {
  FontColor red
  FontSize 25
}
</style>

See also help on:

  • https://plantuml.com/gantt-diagram

2/ About pypi plantuml 0.3.0

For :

Does plantuml .3 support font modification?

It is very old (plantuml 0.3.0 - Released: Nov 1, 2019); perhaps it does not support style feature....

But if it calls a plantuml server, perhaps it will be good...
Go to test... and confirm...

If that can help,
Regards,
Th.

commented Jun 3 by dgd

No joy.

Here's the code.

Output is nearly identical except for a lot of errors.

<code>

Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.7/dist-packages/plantuml.py", line 230, in <module> main() File "/usr/local/lib/python3.7/dist-packages/plantuml.py", line 226, in main 'gen_success': pl.processes_file(filename, directory=args.out)}, args.files))) File "/usr/local/lib/python3.7/dist-packages/plantuml.py", line 226, in <lambda> 'gen_success': pl.processes_file(filename, directory=args.out)}, args.files))) File "/usr/local/lib/python3.7/dist-packages/plantuml.py", line 199, in processes_file content = self.processes(data) File "/usr/local/lib/python3.7/dist-packages/plantuml.py", line 173, in processes raise PlantUMLHTTPError(response, content) File "/usr/local/lib/python3.7/dist-packages/plantuml.py", line 56, in __init__ if not self.message: AttributeError: 'PlantUMLHTTPError' object has no attribute 'message'</code>

I'm running PlantUML on google colab.

thanks

Dennis

commented Jun 3 by The-Lu (33,360 points)

Hello,

Output is nearly identical except for a lot of errors.

Good, but if there are only errors about python script and not on PlantUML language, perhaps you can ask directly the author of your plugin:

Regards,
Th.

...