Giter Site home page Giter Site logo

Changing fonts about lanyon HOT 3 CLOSED

poole avatar poole commented on July 19, 2024 1
Changing fonts

from lanyon.

Comments (3)

nickmccurdy avatar nickmccurdy commented on July 19, 2024 1

Lanyon uses web fonts from Google Fonts. Both PT Sans (the default font for Lanyon) and Open Sans are on Google Fonts, so you can still use Google fonts, though we will have to switch what fonts are loaded and update our CSS.

This line of HTML includes the CSS file for the PT Sans web font so that we can use it in our CSS. If you pick Open Sans on Google Fonts, they will give you a line of HTML (under "3. Add this code to your website:") that you can replace that line with to load Open Sans instead of PT Sans and PT Serif. Now, we will have to modify this in our CSS to tell the browser what text we want displayed in Open Sans. The font-family property in CSS is used to set fonts (and fallback fonts) for different elements on the page. Now we edit lanyon.css to replace all lines with font-family to use the CSS code that Google Fonts gave us under "4. Integrate the fonts into your CSS:".

from lanyon.

 avatar commented on July 19, 2024

That works. Thank for clarifying!

from lanyon.

KorGunnlind avatar KorGunnlind commented on July 19, 2024

this helped me greatly. Thnx guys!

from lanyon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.