How can I modify via Script the Default-Diffuse component?

Hi, i’m building from code a 3D Text, since now I succeeded in creating all the components but one.
I try to explain; this is the game object final state:


Via script I instantiated the mesh renderer and the Text Mesh component, although those two components are set in a proper way, the Font Material appears with the name Default-Diffuse (Instance) and without parameters:

How can I set the Default-Diffuse properties via script?

you need to set the shader in the material using something like shader.Find (“Default Diffuse”)

creating a new material:

Material material = new Material(Shader.Find("Transparent/Diffuse"));

Thanks smitchell.
Here’s the two line of glory:

title.renderer.material = new Material(Shader.Find("GUI/Text Shader"));
title.renderer.material.mainTexture = Resources.Load<Font>("Fonts/myfont").material.mainTexture;