Diagrams: Hide font button where not required
Fix #10701