npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lansingcodes/webfont

v1.0.0

Published

Custom web font icons for Lansing Codes tech groups

Downloads

8

Readme

Lansing Codes Web Font

This is a custom web font (like Mfizz or FontAwesome) for Lansing tech groups with custom logos.

The font exists so groups listed on Lansing Codes can be represented using their own logo while still allowing the icons to be styled with CSS.

Installation

This web font can be loaded using JSDelivr's CDN (the preferred method) or as an NPM dependency.

JSDelivr CDN

You can use a link element to load the web font directly from JSDelivr's CDN:

<link
  rel="preload"
  as="style"
  href="https://cdn.jsdelivr.net/npm/@lansingcodes/webfont@latest/font-lansing-codes.css"
>
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@lansingcodes/webfont@latest/font-lansing-codes.css"
>

NPM

Install the web font in your project using NPM:

npm install --save @lansingcodes/webfont

If you are using Webpack or another code bundler, you can access the CSS file like this:

require('@lansingcodes/webfont/font-lansing-codes.css')

Without a code bundler, you can access the files from node_modules. Here's what's included in the package:

node_modules/
└── @lansingcodes
    └── webfont
        ├── font-lansing-codes.css
        ├── font-lansing-codes.svg
        └── generated
            ├── font-lansing-codes.eot
            ├── font-lansing-codes.svg
            ├── font-lansing-codes.ttf
            └── font-lansing-codes.woff

Usage

You can use the style classes included in the web font CSS to use the web font in your project and even override styles such as the size and color, like this:

<span
  class="icon-code-for-lansing"
  style="
    font-size: 4rem;
    color: #3e79bb
  "
></span>

Making changes

Consider the font-lansing-codes.svg file as the one source of truth for this web font.

You can add or change glypsh within the SVG using Inkscape by following the directions on How to Make Your Own Icon Webfont.

If the linked how-to goes away, here are the important points from the article:

  1. Start with the Inkscape Icon Font Template SVG
  2. Scale the graphic to fit in the drawing
  3. Align the graphic to the baseline (slightly below the drawing)
  4. Convert the graphic entirely to paths
  5. Create a new glyph in Text > SVG Font Editor panel
  6. Assign the new glyph a unique matching string (e.g. 'a', 'b', 'c', etc.)
  7. Use Get curves from selection to use the selected paths for the new glyph
  8. Save the file as a plain SVG (not an Inkscape SVG)
  9. Add style classes to the CSS file and use the unique matching string from Step 6 as the value of the content attribute for new glyphs

Once the SVG is up to date, go to fontconverter.org and use the SVG to generate EOT, TTF, and WOFF versions of the font.

Save the generated files to the generated/ directory, making sure to replace the files that already exist there.

Code of Conduct

All participants are expected to treat others with respect and follow our Code of Conduct.

License

Hippocratic 2.1

Copyright (c) 2019-Present, Humanity Codes LLC