🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/raykov/css-font-parser

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/raykov/css-font-parser

v0.3.0
Source
Go
Version published
Created
Source

CSS font value parser

Go port of CSS font value parser

A simple parser for parsing CSS font values.

import (
	"fmt"

	"github.com/raykov/css-font-parser"
)

data := cfp.Parse(`italic small-caps bold 12px/30px Georgia, serif`)

fmt.Printf("%#v", data)

/*
&cfp.Font{
	Family:[]string{"Georgia", "serif"},
	Size:"12px",
	Style:"italic",
	Variant:"small-caps",
	Weight:"bold",
	Stretch:"",
	LineHeight:"30px",
}
*/

License

Licensed under the three-clause BSD license.

FAQs

Package last updated on 30 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts