Рубрики

paint

How to amplify font size

  1. Select the text or cells with text you want to change. To select all text in a Word document, press Ctrl + A.
  2. On the Home tab, click the font size in the Font Size box. You can also type in any size you want, within the following limits:
    • Excel: between 1 and 409, between 1 and 409, in multiples of .5 (such as 10.5 or 105.5)
    • PowerPoint: between 1 and 3600, in multiples of .1 (such as 10.3 or 105.7)
    • Word: between 1 and 1638, in multiples of .5 (such as 10.5 or 105.5)


font-size

The font-size CSS property sets the size of the font. Changing the font size also updates the sizes of the font size-relative units, such as em , ex , and so forth.

/* values */ font-size: xx-small; font-size: x-small; font-size: small; font-size: medium; font-size: large; font-size: x-large; font-size: xx-large; font-size: xxx-large; /* values */ font-size: smaller; font-size: larger; /* values */ font-size: 12px; font-size: 0.8em; /* values */ font-size: 80%; /* math value */ font-size: math; /* Global values */ font-size: inherit; font-size: initial; font-size: revert; font-size: revert-layer; font-size: unset; 

The font-size property is specified in one of the following ways:

  • As one of the absolute-size, relative-size or math keywords
  • As a or a , relative to the element’s font size.

Values

xx-small , x-small , small , medium , large , x-large , xx-large , xxx-large

Absolute-size keywords, based on the user’s default font size (which is medium ).

Relative-size keywords. The font will be larger or smaller relative to the parent element’s font size, roughly by the ratio used to separate the absolute-size keywords above.

For font-relative units that are root-based (such as rem ), the font size is relative to the size of the font used by the (root) element.

Note: To maximize accessibility, it is generally best to use values that are relative to the user’s default font size.

Scaling rules are applied when determining the computed value of the font-size property for math elements relative to the font-size of the containing parent. See the math-depth property for more information.

Description

There are several ways to specify the font size, including keywords or numerical values for pixels or ems. Choose the appropriate method based on the needs of the particular web page.

Keywords

Pixels

Setting the font size in pixel values ( px ) is a good choice when you need pixel accuracy. A px value is static. This is an OS-independent and cross-browser way of literally telling the browsers to render the letters at exactly the number of pixels in height that you specified. The results may vary slightly across browsers, as they may use different algorithms to achieve a similar effect.

Font sizing settings can also be used in combination. For example, if a parent element is set to 16px and its child element is set to larger , the child element displays larger than the parent element on the page.

Note: Defining font sizes in px is not accessible, because the user cannot change the font size in some browsers. For example, users with limited vision may wish to set the font size much larger than the size chosen by a web designer. Avoid using them for font sizes if you wish to create an inclusive design.

Ems

Using an em value creates a dynamic or computed font size (historically the em unit was derived from the width of a capital “M” in a given typeface.). The numeric value acts as a multiplier of the font-size property of the element on which it is used. Consider this example:

p  font-size: 2em; > 

In this case, the font size of

elements will be double the computed font-size inherited by

elements. By extension, a font-size of 1em equals the computed font-size of the element on which it is used.

If a font-size has not been set on any of the

‘s ancestors, then 1em will equal the default browser font-size , which is usually 16px . So, by default 1em is equivalent to 16px , and 2em is equivalent to 32px . If you were to set a font-size of 20px on the element say, then 1em on the

elements would instead be equivalent to 20px , and 2em would be equivalent to 40px .

In order to calculate the em equivalent for any pixel value required, you can use this formula:

em = desired element pixel value / parent element font-size in pixels

For example, suppose the font-size of the of the page is set to 16px . If the font-size you want is 12px , then you should specify 0.75em (because 12/16 = 0.75). Similarly, if you want a font size of 10px , then specify 0.625em (10/16 = 0.625); for 22px , specify 1.375em (22/16).

The em is a very useful unit in CSS since it automatically adapts its length relative to the font that the reader chooses to use.

One important fact to keep in mind: em values compound. Take the following HTML and CSS:

html  font-size: 100%; > span  font-size: 1.6em; > 
div> span>Outer span>innerspan> outerspan> div> 

Assuming that the browser’s default font-size is 16px, the words “outer” would be rendered at 25.6px, but the word “inner” would be rendered at 40.96px. This is because the inner ‘s font-size is 1.6em which is relative to its parent’s font-size , which is in turn relative to its parent’s font-size . This is often called compounding.

Rems

rem values were invented in order to sidestep the compounding problem. rem values are relative to the root html element, not the parent element. In other words, it lets you specify a font size in a relative fashion without being affected by the size of the parent, thereby eliminating compounding.

The CSS below is nearly identical to the previous example. The only exception is that the unit has been changed to rem .

html  font-size: 100%; > span  font-size: 1.6rem; > 

Then we apply this CSS to the same HTML, which looks like this:

span>Outer span>innerspan> outerspan> 

In this example, the words “outer inner outer” are all displayed at 25.6px (assuming that the browser’s font-size has been left at the default value of 16px).

Ex

Like the em unit, an element’s font-size set using the ex unit is computed or dynamic. It behaves in exactly the same way, except that when setting the font-size property using ex units, the font-size equals the x-height of the first available font used on the page. The number value multiplies the element’s inherited font-size and the font-size compounds relatively.

See the W3C Editor’s Draft for a more detailed description of font-relative length units such as ex .


Formal definition

Initial value medium
Applies to all elements and text. It also applies to ::first-letter and ::first-line .
Inherited yes
Percentages refer to the parent element’s font size
Computed value as specified, but with relative lengths converted into absolute lengths
Animation type a length

font-size =
|
|
|
math

=
|


Change the font size

Excel for Microsoft 365 Word for Microsoft 365 PowerPoint for Microsoft 365 Excel 2021 Word 2021 PowerPoint 2021 Excel 2019 Word 2019 PowerPoint 2019 Excel 2016 Word 2016 PowerPoint 2016 Excel 2013 Word 2013 PowerPoint 2013 Excel 2010 Word 2010 PowerPoint 2010 More. Less

Our Virtual Agent can help answer your questions about fonts in Office.

You can change the font size for all text or just selected text in desktop Excel, PowerPoint, or Word.

Change the default font size for all text

The way you change the default font size varies by app. Select your app below, and then follow the steps.

Excel

Options in the General dialog box

  1. Click File >Options.
  2. In the dialog box, click General.
  3. Under When creating new workbooks, in the Font Size box, enter the font size you want. Or, you can type in any size you want, between 1 and 409, in multiples of .5, such as 10.5 or 105.5. You can also choose a different default font style.

Note: To begin using the new default font size or font, you must restart Excel. The new default font and font size are used only in new workbooks created after you restart Excel; any existing workbooks are not affected. To use the new default font and size in existing workbooks, move worksheets from an existing workbook to a new workbook.

PowerPoint

To change the font size for all slides, change it on the slide master. Every PowerPoint presentation contains a slide master with related slide layouts.

Note: If you want to change the theme, you should do that before changing the font, as a different theme may use different fonts.

  1. On the View tab, click Slide Master. Slide Master and two layoutsIn Slide Master View, the slide master is at the top of the thumbnail pane with the related layouts beneath it.
  2. Click the slide master to change the font on all slides, or click any of the layouts to change the font size on just that layout.
  3. On the slide master or layout, select the level of placeholder text for which you want to change the font size. Slide master layout with second level text selected
  4. On the Home tab, click the font size you want in the Font Size box. You can also type in any size you want in multiples of .1, such as 10.3 or 105.7. The bullet automatically increases or decreases in size to match the font size changes.

Word

  1. Open a new blank document.
  2. On the Home tab, in the Styles group, click the dialog box launcher . Or press Ctrl+Alt+Shift+S.
  3. Click the Manage Styles button (third from left at the bottom):
  4. Click the Set Defaults tab and pick the size you want in the Size box. Set Default tab in the Manage Styles dialog boxYou can also type in any size you want, between 1 and 1638, in multiples of .5, such as 10.5 or 105.5.
  5. Click the New documents based on this template option.
  6. Close and reopen Word. If you’re prompted to save the Normal template, say Yes.

Tip: You can also change the default font or font color on the Set Defaults tab.

When you set a default font, every new document you open will use the font settings you selected and set as the default. The default font applies to new documents that are based on the active template, usually Normal.dotm. You can create different templates to use different default font settings.

Change the size of selected text

To change the font size of selected text in desktop Excel, PowerPoint, or Word:

  1. Select the text or cells with text you want to change. To select all text in a Word document, press Ctrl + A.
  2. On the Home tab, click the font size in the Font Size box. You can also type in any size you want, within the following limits:
    • Excel: between 1 and 409, between 1 and 409, in multiples of .5 (such as 10.5 or 105.5)
    • PowerPoint: between 1 and 3600, in multiples of .1 (such as 10.3 or 105.7)
    • Word: between 1 and 1638, in multiples of .5 (such as 10.5 or 105.5)
  • When you select text, a mini toolbar appears near your cursor. You can also change the text size in this toolbar.
  • You can also click the Increase Font Size or Decrease Font Size (Grow Font and Shrink Font in some earlier versions of Office programs) icons until the size you want is displayed in the Font Size box.
Colin Wynn
the authorColin Wynn

Leave a Reply