33 packages found
Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
An efficient text measurement set for the browser.
A React Native text component that sets its fontSize to fill a target height.
Measure text height without laying it out
Measure your text width and height with custom style and class name in browser
A waterMarker tool that support color canvasWidth/height totate text
react hook to clamp multiline text to a given height in a responsive way (in < 2.5kb)
word wraps and lays out Opentype.js glyphs. A fork from https://github.com/Jam3/opentype-layout
Measure text accurately before laying it out and get font information from your App
Measure text accurately before laying it out and get font information from your App
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.
<br /> <p align="center"> <a href="hhttps://amitfoundation.herokuapp.com/"> <img src="https://raw.githubusercontent.com/codewithamitpatil/Blogging-Apis-With-Mysql/main/logo2.png" alt="Logo" width="280" height="180"> </a>
Measure text height without laying it out.
Get information about a PNG from its headers
Vue component - Omits the text that exceeds the specified height
Measure text accurately before laying it out and get font information from your App
Measure text accurately before laying it out and get font information from your App
``` 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',
A fast, jQuery-free text sizing component that quickly fits single and multi-line text to the width (and optionally height) of its container.
Measure the text height in browsers