mulder 
		
		YaBB Newbies
		 
		Offline 
		
		
		Posts: 6
		
		
		
		
 
	 
	
		
			
				Re: Saving actual fonts used to PDF  
				Reply #2 -  Jul 28th , 2009, 2:58pm 
			 
			
				
	  
			 
		
		
			Okay, but it's mostly in Spanish: int nro_linea = 2; int nro_espacio = 0; PFont font, font1, font2, font3, font4; String par_actual = "";               // valor actual del escaneo del texto String[] lines;                       // lineas del texto escaneado String[] str_ayuda; int arrastrando = -1; int pares_totales = 0; float k_total; int espacio_abajo; int espacio_arriba; int espacio_derecha; int espacio_izquierda; String layout_actual = "standard"; String visual_mode = "lineal"; int burbujas_maximas = 49; int burbujas_graficadas = 0; Ball[] balls = new Ball[0]; float grav = 1.40;                    // Gravedad float b = 0.85;                       // Rebote float f = 0.90;                       // Friccion color ColorLineasGrales = color(200); color ColorAcento = color(255, 102, 0); color ColorAcentoCompanion = color(255, 180, 0); int lapso_refresh = 1;               // cada cuantos frames se renueva la info del listado int timer_interno = 0; boolean resorte_activado = false; boolean show_info = false; boolean llenar_burbujas = false; boolean hay_gravedad = false; boolean mostrar_ayuda = false; boolean mostrando_ayuda = false; //added boolean record=false; void setup() {   size(1024, 725);   background(255);   smooth();   loop();     /* font=createFont("Arial-Black",18);   font1=createFont("ArialMT",25);   font2=createFont("Arial-BoldMT",18);   font3=createFont("Arial-BoldMT",14);*/   font=createFont ("Gotham-Black",20);   font1-createFont ("Gotham-Medium",18);   font2=createFont ("Gotham-Bold",18);   font3=createFont ("Gotham-Bold",14);   font4=createFont("TimesNewRomanPSMT",18); With the current fonts referenced, it it should be using Gotham-Black for the on-screen output, unless the frequency of the word changes, at which point it should use a different, smaller font. But it appears to only use one of the fonts, and that would be Gotham-Medium. And even after doing that, use the command to save the output to a PDF file results in characters that aren't in that font, and don't retain the spacing of the original on-screen results. It appears instead to use Arial for the PDF, which is completely wrong. I need to fix that problem so I can render correctly on-screen and capture accurate results in the PDF that match the on-screen representation.