[graphviz-interest] BPMN font with graphviz ?

Marc Chantreux <[email protected]> Wed, 23 Nov 2016 21:41:14 +0100
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
hello,

i try to write a little DSL for BPMN using m4, graphviz and the bpmn font
(https://github.com/bpmn-io/bpmn-font/blob/master/dist/font/bpmn.ttf)

i installed the font via gnome-font-viewer and now, i get 

# fc-list|grep bpmn
/home/mc/.local/share/fonts/bpmn.ttf: bpmn:style=Regular

# cat a.gv
digraph "Tamys" {
    foo [fontname="bpmn"]
}

i try to render with the command and the output below. but it seems
the font isn't used at all. can someone help me to make it work ?

regards

# dot -v -Tpng -o a.png a.gv 
dot - graphviz version 2.38.0 (20140413.2041)
Using render: cairo:cairo
Using device: png:cairo:cairo
libdir = "/usr/lib/graphviz"
Activated plugin library: libgvplugin_dot_layout.so.6
Using layout: dot:dot_layout
The plugin configuration file:
	/usr/lib/graphviz/config6a
		was successfully loaded.
    render	:  cairo dot fig gd map pic pov ps svg tk vml vrml xdot
    layout	:  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
    textlayout	:  textlayout
    device	:  canon cmap cmapx cmapx_np dot eps fig gd gd2 gif gv imap imap_np ismap jpe jpeg jpg pdf pic plain plain-ext png pov ps ps2 svg svgz tk vml vmlz vrml wbmp x11 xdot xdot1.2 xdot1.4 xlib
    loadimage	:  (lib) eps gd gd2 gif jpe jpeg jpg png ps svg xbm
pack info:
  mode   undefined
  size   0
  flags  0
  margin 8
pack info:
  mode   node
  size   0
  flags  0
fontname: "bpmn" resolved to: (PangoCairoFcFont) "bpmn, Regular" /home/mc/.local/share/fonts/bpmn.ttf
network simplex:  1 nodes 0 edges maxiter=2147483647 balance=1
network simplex: 1 nodes 0 edges 0 iter 0.00 sec
Maxrank = 0, minrank = 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross Tamys: 0 crossings, 0.00 secs.
network simplex:  1 nodes 0 edges maxiter=2147483647 balance=2
network simplex: 1 nodes 0 edges 0 iter 0.00 sec
routesplines: 0 edges, 0 boxes 0.00 sec
Using render: cairo:cairo
Using device: png:cairo:cairo
dot: allocating a 19K cairo image surface (83 x 59 pixels)
gvRenderJobs Tamys: 0.00 secs.
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest