# changing font size in textmaker editor doesn't change font in the pdf [duplicate]

I've changed the font size to 14 in Times New Roman.It only changes font on the file on the left,but pdflatex file on the right remains same whatever the fontsize is.How do i fix this?

## marked as duplicate by TeXnician, Bobyandbob, Sebastiano, Schweinebacke, ZarkoNov 21 '17 at 9:03

• Note: The editor font is not the same as the document font. The document font has to be selected using LaTeX commands and options. The Editor settings of TeXmaker do not change anything at the LaTeX document or the resulting PDF. – Schweinebacke Nov 21 '17 at 8:14
• – Schweinebacke Nov 21 '17 at 8:18

As you said you changed the font size in the Latex editor. This is just a convenience for you to make your code more readable for yourself. To change the font size for your PDF document you have to tell Latex to scale the font as you like. It looks like you are using the simple classes. "The standard classes, article, report and book support 3 different font sizes, 10pt, 11pt, 12pt (by default 10pt). The font size is set through the optional argument at the beginning of your code, e.g.:"

``````\documentclass[12pt]{report}
``````

If you want to scale your font size to 14pt you can use for example the following command

``````\documentclass[14pt]{extreport}
``````

Also note the source for my examples: https://texblog.org/2012/08/29/changing-the-font-size-in-latex/

• I even tried \documentclass[14pt]{article}, but it doesn't change the font size of pdf – pacifica Nov 21 '17 at 11:32
• Could you provide a simple example of your code? – XsLiar Nov 21 '17 at 16:57