HTML Academy
Logo: Custom Font
Text Formatting11/26
Back to the list of tasks
  • 1. Unicode Characters
  • 2. The text-shadow Property
  • 3. Horizontal Text Shadow Offset
  • 4. Vertical Text Shadow Offset
  • 5. Text Shadow Feathering
  • 6. The Text Shadow Color
  • 7. Embedded Effect for Text
  • 8. Decorative Retro Shadow
  • 9. Challenge: Psychedelic Shadows
  • 10. Logo: Custom Font
  • 11. Logo: Icon Font
  • 12. Logo: Size Alignment
  • 13. Applying Decorative Styling to the Line, Step 1
  • 14. Applying Decorative Styling to the Line, Step 2
  • 15. The text-indent Property
  • 16. The: first-letter Pseudo Element
  • 17. : first-line Pseudo Element
  • 18. Column Markup: The column-count Property
  • 19. Column Markup: The column-width Property
  • 20. Column Markup: The column-gap Property
  • 21. Text Direction
  • 22. Text Direction and Tables
  • 23. Overflowing Text
  • 24. Spacing Between Words
  • 25. Challenge: Why So Serious?
  • 26. Challenge: Play With Fonts
Logo: Size Alignment
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

Logo: Icon Font

In addition to letters, the font may contain other graphic symbols. There are tools that allow you to build your own font from SVG objects. There are quite a few of them, including: icomoon.io/app, fontastic.me, glyphter.com, and others.

For the sake of simplicity and clarity, in this task we will use the Glyphter service to create a font with a single character, which will be stored at the address for the Latin letter A.

Then we will load and connect our font in CSS and write the letter A in the code. However, the resulting output in the browser will be our custom icon.

Let’s make this icon the graphic symbol that is used in the logo.

The advantage of font icons over bitmaps is that they can be easily scaled or recolored by applying CSS properties to text. In addition, the font does not pixelate on screens with a high pixel density, which is what would happen if you scaled a standard bitmap image.

Comments

  • index.html
  • style.css
HTML
<!DOCTYPE html> <html lang="en"> <head> <title>Logo: Icon Font</title> <meta charset="utf-8"> <link rel="stylesheet" href="style.css"> </head> <body> <a href="#">Warmphoto</a> <h1>Warm Lamp Photos</h1> </body> </html>
CSS
@font-face { font-family: "Montserrat Alternates"; src: url("fonts/MontserratAlternates.woff") format("woff"); } /* @font-face { font-weight: normal; font-style: normal; font-family: "Glyphter"; src: url("fonts/Glyphter.woff") format("woff"); } */ body { background: url("night.jpg") no-repeat 50% 0; font-size: 12px; font-family: "Arial", sans-serif; } a { display: block; margin: 12px; color: #ecf0f1; text-align: center; text-decoration: none; text-transform: uppercase; font-size: 55px; font-family: "Montserrat Alternates", sans-serif; } a span { } h1 { margin: 12px; color: #ecf0f1; text-align: center; font-size: 24px; }

What didn’t you like in this task?

Thanks! We’ll fix everything at once!

The code has changed, click “Refresh” or turn autorun on.

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%
Goalscompleted
0
    1. Uncomment the call to connect to the icon font Glyphter,
    2. then insert span with the character A in the link before the label Warmphoto.
    3. and assign the font Glyphter to the span.

    Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

    VISAMastercard

    Log in

    or

    Forgot your password?

    Sign up

    Sign up

    or
    Log in

    Restore access

    Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

    Forgot to connect your email to the profile? Email us and we’ll help.