0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-07 23:50:05 -05:00
penpot-exporter-figma-plugin/plugin-src/translators/text/font/custom/customFontIds.ts

10 lines
273 B
TypeScript
Raw Normal View History

const customFontIds = new Map<string, string>();
export const getCustomFontId = (fontName: FontName) => {
return customFontIds.get(fontName.family);
};
export const setCustomFontId = (fontFamily: string, fontId: string) => {
customFontIds.set(fontFamily, fontId);
};