/sketch-engineer-friendly-text

Sketch plugin that make text layer's metric friendly to iOS engineer

Primary LanguageJavaScriptMIT LicenseMIT

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.

中文详细介绍文章

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

Install EngineerFriendlyText with Sketchpacks

or donwload here. You may give me a star 🌟 if you like it.

Changelog

  • 1.1: add support for Chinese font
  • 1.0: initial release