https://github.com/leavez/sketch-engineer-friendly-text
Sketch plugin that make text layer's metric friendly to iOS engineer
https://github.com/leavez/sketch-engineer-friendly-text
Last synced: over 1 year ago
JSON representation
Sketch plugin that make text layer's metric friendly to iOS engineer
- Host: GitHub
- URL: https://github.com/leavez/sketch-engineer-friendly-text
- Owner: leavez
- License: mit
- Created: 2017-06-26T12:32:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T12:11:31.000Z (about 9 years ago)
- Last Synced: 2025-03-26T09:45:08.025Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 736 KB
- Stars: 24
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Engineer Friendly Text
Engineer-Friendly-Text is a sketch plugin make text layer's metric friendly to iOS engineer.
## Why
Sketch's text layer have extra margin on the outer sides when lineHeight greater than default one. This is different with text views on iOS, which make engineer hard to implement the design precisely.
中文详细介绍[文章](https://zhuanlan.zhihu.com/p/27572662)
## What
This plugin automatically add a mask on text layer and crop it to the same height to text view on iOS. Extra margin before first line and below last line will be crop out. So iOS engineer can just layout views according to the frame in sketch file and adjust margin by hands no more.
This plugin also provides a convenient method to set line height multiple.

## Install
[](https://sketchpacks.com/leavez/sketch-engineer-friendly-text/install)
or donwload [here](https://github.com/leavez/sketch-engineer-friendly-text/releases/latest). You may give me a star 🌟 if you like it.
## Changelog
- 1.1: add support for Chinese font
- 1.0: initial release