Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

font-carrier

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-carrier - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

7

lib/class/font.js

@@ -178,2 +178,3 @@ var Base = require('./base.js')

toString: function() {
//渲染模板

@@ -183,3 +184,5 @@ return _.template(config.FONT_TMPL)({

fontface: helper.key2underline(this.__fontface.options),
glyphs: this.__glyphs
glyphs: this.__glyphs,
//判断原始字体里面是否已经有了x,没有的话需要补上默认的。因为在xp下没有这个,会蓝屏。
hasX: this.__glyphs['x'] ? true : false
})

@@ -210,3 +213,3 @@

this.__glyphs = _.filter(tmpGlyphs, function(glyph, unicode) {
this.__glyphs = _.pick(tmpGlyphs, function(glyph, unicode) {
return _.indexOf(unicodes, unicode) !== -1

@@ -213,0 +216,0 @@ })

@@ -60,6 +60,10 @@ var multiline = require('multiline')

<missing-glyph />
<glyph glyph-name="x" unicode="x" horiz-adv-x="1001"
<% if(!hasX){ %>
<glyph glyph-name="x" unicode="&#x78;" horiz-adv-x="1001"
d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5
t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5
t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" />
<% } %>
<% for(var i in glyphs){

@@ -66,0 +70,0 @@ var glyph = glyphs[i].options;

{
"name": "font-carrier",
"version": "0.0.6",
"version": "0.0.7",
"description": "字体搬运工,中文字体解决方案,iconfont",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -50,3 +50,3 @@ var fs = require('fs')

//测试精简字体
transFont2.min('我是精简后的字体,我可以重复')
transFont2.min('我是精简后的字体,我可以重复,我的x被覆盖了。')
transFont2.output({

@@ -53,0 +53,0 @@ path:'./test/font3'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc