์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” CSS๋ฅผ ์ด์šฉํ•ด์„œ ํฐํŠธ๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

  • font-family ๋Š” ํฐํŠธ๋ฅผ ๋ณ€๊ฒฝํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค. ( ๋‹์›€์ฒด, ๊ตด๋ฆผ์ฒด ๋ญ ์ด๋Ÿฐ๊ฒƒ๋“ค ์žˆ์ฃ ? ) 

  • font-style ๋Š” ํฐํŠธ๋ฅผ ์ฒด๋ฅผ ๋ณ€๊ฒฝํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค. ( italic, oblique ) 

  • font-variant ๋Š” ๋Œ€์†Œ๋ฌธ์ž๋ฅผ ์„ค์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

  • font-weight ๋Š” ํฐํŠธ์˜ ๊ตต๊ธฐ๋ฅผ ์„ค์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค. ( bold, light ) 

  • font-size ๋Š” ํฐํŠธ ์‚ฌ์ด์ฆˆ๋ฅผ ์„ค์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

  • font ๋Š” ํฐํŠธ๊ด€๋ จ ๋ชจ๋“  ์†์„ฑ์„ ํ•œ๋ฒˆ์— ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋Š” ํ•œ๋ฐฉ ์†์„ฑ์ž…๋‹ˆ๋‹ค.

 

ํฐํŠธ ํŒจ๋ฐ€๋ฆฌ ์„ค์ •ํ•˜๊ธฐ

์„ค์ • ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ ๋ชจ๋“  ํฐํŠธ ํŒจ๋ฐ€๋ฆฌ ๊ฐ’์ž…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ๋“ค๋ฉด aria, serif์™€ ๊ฐ™์€ ํฐํŠธ ์„œ์ฒด์ž…๋‹ˆ๋‹ค.  

<p style="font-family:georgia,garamond,serif;">
This text is rendered in either georgia, garamond, or the default
serif font depending on which font  you have at your system.
</p>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

This text is rendered in either georgia, garamond, or the default
serif font depending on which font you have at your system.

 

 

ํฐํŠธ ์Šคํƒ€์ผ ์„ค์ •ํ•˜๊ธฐ

์„ค์ • ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ normal, italic ๊ทธ๋ฆฌ๊ณ  oblique ์ž…๋‹ˆ๋‹ค. 

<p style="font-style:italic;">
This text will be rendered in italic style
</p>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

This text will be rendered in italic style

 

 

ํฐํŠธ ๋ณ€์ข… ์„ค์ •ํ•˜๊ธฐ

๊ฐ€๋Šฅํ•œ ๊ฐ’์€ normal ๊ณผ small-caps๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

<p style="font-variant:small-caps;">
This text will be rendered as small caps
</p>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

This text will be renedered as small caps

 

 

ํฐํŠธ ๋‘๊ป˜ ์„ค์ •ํ•˜๊ธฐ

ํฐํŠธ์˜ ๋‘๊ป˜๋ฅผ ์„ค์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

๊ฐ€๋Šฅํ•œ ๊ฐ’์€ normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900 ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

<p style="font-weight:bold;">
This font is bold.
</p>
<p style="font-weight:bolder;">
This font is bolder.
</p>
<p style="font-weight:900;">
This font is 900 weight.
</p>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

This font is bold.

This font is bolder.

This font is 900 weight.

 

 

ํฐํŠธ ์‚ฌ์ด์ฆˆ ์„ค์ •ํ•˜๊ธฐ

๊ฐ€๋Šฅํ•œ ๊ฐ’์€ xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, ๊ทธ๋ฆฌ๊ณ  ํ”ฝ์…€๊ฐ’ ๋˜๋Š” ํผ์„ผํŠธ ๊ฐ’์ž…๋‹ˆ๋‹ค.

<p style="font-size:20px;">
This font size is 20 pixels
</p>
<p style="font-size:10pt;">
This font size is small
</p>
<p style="font-size:14pt;">
This font size is large
</p>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. 

This font size is 20 pixels

This font size is small

This font size is large

 

 

ํฐํŠธ ์‚ฌ์ด์ฆˆ adjust ์„ค์ •ํ•˜๊ธฐ

์ด๋ฒˆ์—๋Š” ํฐํŠธ์˜ ์‚ฌ์ด์ฆˆ adjust ์„ค์ •์„ ํ•˜๋Š” ๊ฒƒ์ด๋„ค์š”. ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ ๋ชจ๋“  ์ˆซ์ž๊ฐ’์ž…๋‹ˆ๋‹ค.  

<p style="font-size-adjust:0.61;">
This text is using a font-size-adjust value.
</p>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

This text is using a font-size-adjust value.

 

 

ํฐํŠธ ์ŠคํŠธ๋ ˆ์น˜ ์„ค์ •

๊ฐ€๋Šฅํ•œ ๊ฐ’์€ normal, wider, narrower, ultra-condensed, extra-condensed, condensed, semi-condensed, semi-expanded, expanded, extra-expanded, ultra-expanded ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์†์„ฑ์€ ์—ฌ๋Ÿฌ๋ถ„ ์ปดํ“จํ„ฐ์— ์žˆ๋Š” ํฐํŠธ๊ฐ€ 

<p style="font-stretch:ultra-expanded;">
If this doesn't appear to work, it is likely that 
your computer doesn't have a condensed or expanded 
version of the font being used.
</p>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

If this doesn't appear to work, it is likely that your computer doesn't have a condensed or expanded version of the font being used.

 

 

ํฐํŠธ ์†์„ฑ ํ•œ๋ฒˆ์— ์„ค์ •ํ•˜๊ธฐ

<p style="font:italic small-caps bold 15px georgia;">
Applying all the properties on the text at once.
</p>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค

Applying all the properties on the text at once.

 

 

 

 

์ด์ƒ์œผ๋กœ ํฐํŠธ ๊ด€๋ จ ์†์„ฑ๋“ค์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด์•˜์Šต๋‹ˆ๋‹ค.

 

ํœด์šฐ~~~ ์Šฌ์Šฌ CSS๊ฐ€ ์žฌ๋ฏธ์žˆ์–ด ์ง€์‹œ๋‚˜์š”? ์ง€๊ฒจ์›Œ์ง€์‹œ๋‚˜์š”?

 

์ด์ œ ์‹œ์ž‘์ธ๋ฐ ๋ง์ด์ฃ  ใ…‹ใ…‹ใ…‹

 

ํ™”์ดํŒ…์ž…๋‹ˆ๋‹ค~~ 

 

 

 

 

 

 

Reference : http://www.tutorialspoint.com/css/css_fonts.htm