Graphviz (02) characters subgraph handle Chinese characters are not displayed

1. In accordance with the official set Tutorials

2. If you do not show, in front of the Chinese characters are not displayed with a "space" characters will appear correctly.

digraph idp_modules{

  rankdir = TB;
  fontname = "Microsoft YaHei";
  fontsize = 12;
  
  node [ fontname = "Microsoft YaHei", fontsize = 12, shape = "record" ];
  edge [ fontname = "Microsoft YaHei", fontsize = 12 ];
  
      subgraph cluster_sl{
          label="IDP支持层";
          bgcolor="MintCream " ; 
          Node [Shape = " MRecord " , Color = " Skyblue " , style = " Filled " ]; 
          network_mgr [label = " Network Manager " ]; 
          log_mgr [label = " Log Manager " ]; 
          module_mgr [label = " module manager " ]; 
          conf_mgr [label = " configuration Manager " ]; 
          db_mgr [label = "Database Manager" ]; 
      }; 
  
      The subgraph cluster_md { 
          label = " pluggable module set " ; 
          bgcolor = " LightCyan " ; 
          Node [Color = " chartreuse2 " , style = " Filled " ]; 
          mod_dev [label = " Development Support Module " ]; 
          mod_dm [label = " data modeling " ]; 
          mod_dp [label = " deployment issuing module " ];
      };
  
  mod_dp -> mod_dev [label="依赖..."];
  mod_dp -> mod_dm [label="依赖..."];
  mod_dp -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
  mod_dev -> mod_dm [label="依赖..."];
  mod_dev -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
  mod_dm -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
}

 

 

Guess you like

Origin www.cnblogs.com/rock_chen/p/10987578.html