Text Editor with File Download ');
newWindow.document.close();// Trigger the print function
newWindow.print();
}const fontSelect = document.getElementById('fontSelect');
const fonts = [
'Roboto', 'Open Sans', 'Lato', 'Montserrat',
'Arial', 'Verdana', 'Georgia', 'Times New Roman',
'Courier New', 'Tahoma', 'Comic Sans MS', 'Impact',
'Trebuchet MS', 'Palatino', 'Garamond', 'Book Antiqua',
'Arial Black', 'Lucida Sans Unicode', 'Arial Narrow',
'Century Gothic', 'Lucida Grande', 'Geneva', 'Helvetica',
'Calibri', 'Candara', 'Segoe UI', 'Optima', 'Arial Unicode MS',
'Fira Sans', 'Nunito', 'Poppins', 'Quicksand', 'Source Sans Pro',
'Ubuntu', 'Varela Round', 'Playfair Display', 'Merriweather',
'Oswald', 'Raleway', 'Noto Sans', 'PT Sans', 'Exo 2',
'Crimson Text', 'Roboto Slab', 'Libre Baskerville', 'Arvo',
'Dancing Script', 'Pacifico'
];fonts.forEach(font => {
const option = document.createElement('option');
option.value = `'${font}', sans-serif`;
option.textContent = font;
fontSelect.appendChild(option);
});