point-size.dot 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* dot language does not specify max. point size for font.
  2. * gml4gtk does limit it to 255 to avoid crashes.
  3. * dot allows fp humber as 10.0 when int is expected.
  4. * at test it appears dot point-size has a undocumented max. of 255
  5. * dot message is:
  6. * Warning: POINT-SIZE value 256 > 255 - too large - ignoredin label of node h3
  7. * Warning: POINT-SIZE value 2147483648 > 255 - too large - ignoredin label of node h4
  8. * Warning: POINT-SIZE value 4294967296 > 255 - too large - ignoredin label of node h5
  9. * gml4gtk warns but limits the value to 255 and does not ignore the labels.
  10. * dphl_chk_pointsize(): limiting point-size 256 to 255 max.
  11. * dphl_chk_pointsize(): limiting point-size 2147483648 to 255 max.
  12. * dphl_chk_pointsize(): limiting point-size 4294967296 to 255 max.
  13. // this is c++ comment this way is checked for and generates lexer warning in dot.l
  14. */
  15. digraph "point-size"
  16. {
  17. /* this is oke with a int number but gml4gtk does not support yet record shapes with html label */
  18. h0 [shape=record label=<<font color="blue" point-size="28">point-size="28"</font><br/>0>];
  19. /* this is oke with a int number */
  20. h1 [label=<<font color="blue" point-size="8">point-size="8"</font><br/>1>];
  21. /* this is fp number when int expected */
  22. h2 [label=<<font color="green" point-size="10.0">point-size="10.0"</font><br/>2>]
  23. /* this is limited by gml4gtk but not by dot */
  24. h3 [label=<<font color="red" point-size="256">point-size="256"</font><br/>3>]
  25. /* this does overflow signed 32 bits value */
  26. h4 [label=<<font color="blue" point-size="2147483648">point-size="2147483648"</font><br/>4>]
  27. /* this does overflow unsigned 32 bits value */
  28. h5 [label=<<font color="blue" point-size="4294967296">point-size="4294967296"</font><br/>5>]
  29. h1->h0;
  30. h1->h2->h3;
  31. h1->h4->h5;
  32. /* this is warned about in dot.l */
  33. */
  34. }
  35. /* end. */