I'm trying to represent some matrices in a tree. The higher the node of a matrix, the large I want the font to be (and the lower the node, the smaller the font). I came up (in TikzEdt) with
begin{tikzpicture} [
level 1/.style={level distance=3cm,sibling distance =10cm},
level 2/.style={level distance=3cm,sibling distance =1.5cm},
level 3/.style={level distance=1.5cm,sibling distance =0.8cm},
every node/.style = {shape=rectangle, rounded corners, draw, align=center}
]
\node {\Huge1 0 0\\\Huge 0 1 0\\\Huge0 0 1}
child { node {\LARGE1 0 0\\\LARGE1 1 0\\\LARGE1 1 1}
child { node {\Large1 0 0\\\Large2 1 0\\\Large3 2 1} }
child { node {1 0 0\\2 0 1\\3 1 2} }
child { node {0 1 0\\1 2 0\\2 3 1} }
child { node {0 0 1\\1 0 2\\2 1 3} }
child { node {0 1 0\\0 2 1\\1 3 2} }
child { node [font=\fontsize{140}{120}\selectfont] {0 0 1\\0 1 2\\1 2 3} }
} ;
\end{tikzpicture}
which gives

As one can see \Huge, \LARGE and \Large work, apart from the baselineskip, but I want to choose the fonts myself, which I tried in the last matrix. As one can see, the baselineskip {120} works, but the fontsize {140} has not the desired effect.
My TikzEdt preambule is
\documentclass{article}
\usepackage{tikz,amsmath, amssymb,bm,color}
\usepackage[margin=0cm,nohead]{geometry}
\usepackage[active,tightpage]{preview}
%\usepackage{tikz-qtree}
\usepackage[linguistics]{forest}
\usepackage{anyfontsize}
\usetikzlibrary{shapes,arrows,arrows.meta}
\usetikzlibrary{calc,graph}
%\usetikzlibrary{graphdrawing,graphdrawing.trees}
\usepackage{relsize}
My last solution is
\begin{document}
\begin{forest}
matrices,
scale fonts=from 45pt to 15pt,
[1&0&0\\0&1&0\\0&0&1,l sep=1cm
[1&0&0\\1&1&0\\1&1&1
[1&0&0\\2&1&0\\3&2&1]
[1&0&0\\2&0&1\\3&1&2]
[0&1&0\\1&2&0\\2&3&1]
[0&0&1\\1&0&2\\2&1&3]
[0&1&0\\0&2&1\\1&3&2]
[0&0&1\\0&1&2\\1&2&3]
]
[1&0&0\\1&0&1\\1&1&1 ,l*=3.5
[1&0&0\\2&1&1\\3&2&1]
[1&0&0\\2&1&1\\3&1&2]
[0&1&0\\1&2&1\\2&3&1]
[0&0&1\\1&1&2\\2&1&3]
[0&1&0\\1&2&1\\1&3&2]
[0&0&1\\1&1&2\\1&2&3]
]
[0&1&0\\1&1&0\\1&1&1 ,l*=6
[1&1&0\\2&1&0\\3&2&1]
[1&0&1\\2&0&1\\3&1&2]
[1&1&0\\1&2&0\\2&3&1]
[1&0&1\\1&0&2\\2&1&3]
[0&1&1\\0&2&1\\1&3&2]
[0&1&1\\0&1&2\\1&2&3]
]
[0&0&1\\1&0&1\\1&1&1 ,l*=6
[1&1&1\\2&1&1\\3&2&1]
[1&1&1\\2&1&1\\3&1&2]
[1&1&1\\1&2&1\\2&3&1]
[1&1&1\\1&1&2\\2&1&3]
[1&1&1\\1&2&1\\1&3&2]
[1&1&1\\1&1&2\\1&2&3]
]
[0&1&0\\0&1&1\\1&1&1 ,l*=3.5
[1&1&0\\2&2&1\\3&2&1]
[1&0&1\\2&1&2\\3&1&2]
[1&1&0\\2&2&1\\2&3&1]
[1&0&1\\2&1&2\\2&1&3]
[0&1&1\\1&2&2\\1&3&2]
[0&1&1\\1&2&2\\1&2&3]
]
[0&0&1\\0&1&1\\1&1&1
[1&1&1\\2&2&1\\3&2&1]
[1&1&1\\2&1&2\\3&1&2]
[1&1&1\\2&2&1\\2&3&1]
[1&1&1\\2&1&2\\2&1&3]
[1&1&1\\1&2&2\\1&3&2]
[1&1&1\\1&2&2\\1&2&3]
]
]
\end{forest}
\end{document}



font=\Hugein the first case. Do you see the same difference if you compare equivalent cases? – cfr Jul 30 '17 at 14:10\usepackage{lmodern}(improved replacement for the cm fonts), you get fully scalable fonts and\fontsizeworks as expected. Allthough that node is not properly adjusted then (and I don't know how to fix this). – Mike Jul 30 '17 at 14:53