mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-07 23:50:05 -05:00
10 lines
273 B
TypeScript
10 lines
273 B
TypeScript
|
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);
|
||
|
};
|