Socket
Book a DemoInstallSign in
Socket

@tslsmart/font-local-base

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tslsmart/font-local-base

特斯联私网项目使用的字体库

0.3.0
latest
npmnpm
Version published
Maintainers
3
Created
Source

本地使用的字体库

这是仅在私网里面部署的项目需要用到的基础字体库,包含HYQiHei字体和Plain字体

垂直居中?

使用汉仪旗黑字体后,文字没法垂直居中?

试试给元素添加.font-fix类名试试!

点击这里查看更多详情

注意!!!

注意,请仅在需要部署到局域网中,无法访问到公网的项目中使用本字体库.

注意,请仅在需要部署到局域网中,无法访问到公网的项目中使用本字体库.

注意,请仅在需要部署到局域网中,无法访问到公网的项目中使用本字体库.

本字体库完整地引入了四种字重的汉仪旗黑字体,因此首屏加载速度会非常慢,如果你的项目能访问到公网的话,请使用更友好的汉仪旗黑字体加载方式

使用方法

安装

pnpm i @tslsmart/font-local-base

引入

// 入口文件main.js中
import '@tslsmart/font-local-base'

已默认对html标签使用了font-family: "Plain Regular", "HYQiHei";来设置字体,其余的元素会继承该属性,无需再手动申明该属性

Keywords

font

FAQs

Package last updated on 09 Nov 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.