33 packages found
word wraps and lays out Opentype.js glyphs. A fork from https://github.com/Jam3/opentype-layout
Get a {width, height} given a text string (or array) and svg attributes
jQuery plugin, tailor made text to fill the height of the parent element or ellipse it if it doesn't fit
Measure text height without laying it out.
Make your text always fit both the width & height of a container.
Remove space before and after text strings, added by line-height and extra space in glyph itself.
Scale Text JS is a simple to use plugin for jQuery that allows you to scale text to the width AND height of the container component.
A fast, jQuery-free text sizing component that quickly fits single and multi-line text to the width (and optionally height) of its container.
word wraps and lays out Opentype.js glyphs
Measure text height without laying it out.
Vue component - Omits the text that exceeds the specified height
``` npm install text-to-db64 ``` #### to use it ``` // 目前做了Helvetica, yahei两种字体的垂直居中调整 // defaultConfig var config = { width: 80, height: 80, bgColor: '#000', color: '#fff', fontSize: 30, fontFamily: 'Helvetica',
measures word and font widths and heights