import { Layer } from 'sketch-constructor'; import { FontWeightProperty } from 'csstype'; /** * 获取字体样式 * @param layer 图层 */ export declare function getFont(layer: Layer): IFont; /** * 获取 PingFangSC 字重 * @param fontName PingFangSC 字体全称 */ export declare function getPingFangSCWeight(fontName: string): number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "bold" | "normal" | "bolder" | "lighter" | undefined; export interface IFont { letterSpacing?: string; textShadow?: string; fontWeight: FontWeightProperty; lineHeight: string; fontSize: string; color: string; } /** * Sketch | 中文 | 属性值 | * Regular | 常规体 | * Ultralight | 极细体 | * Thin | 纤细体 | * Light | 细体 | * Medium | 中黑体 | * Semibold | 中粗体 | */