Skip to content

Commit

Permalink
style: prettify standalone file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Andrade committed Jan 25, 2021
1 parent 9327991 commit 4f3e54b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const buildConfig = async (options) => {
}

return config;
}
};

const getGlyphsData = (files, options) => {
const metadataProvider =
Expand Down Expand Up @@ -109,7 +109,7 @@ const getGlyphsData = (files, options) => {
)
);
});
}
};

const toSvg = (glyphsData, options) => {
let result = "";
Expand Down Expand Up @@ -150,15 +150,16 @@ const toSvg = (glyphsData, options) => {

fontStream.end();
});
}
};

const toTtf = (buffer, options) => Buffer.from(svg2ttf(buffer, options).buffer)
const toTtf = (buffer, options) => Buffer.from(svg2ttf(buffer, options).buffer);

const toEot = (buffer) => Buffer.from(ttf2eot(buffer).buffer)
const toEot = (buffer) => Buffer.from(ttf2eot(buffer).buffer);

const toWoff = (buffer, options) => Buffer.from(ttf2woff(buffer, options).buffer)
const toWoff = (buffer, options) =>
Buffer.from(ttf2woff(buffer, options).buffer);

const toWoff2 = (buffer) => wawoff2.compress(buffer)
const toWoff2 = (buffer) => wawoff2.compress(buffer);

export const webfont = async (initialOptions) => {
if (!initialOptions || !initialOptions.files) {
Expand Down Expand Up @@ -314,6 +315,6 @@ export const webfont = async (initialOptions) => {
result.config = options;

return result;
}
};

export default webfont;

0 comments on commit 4f3e54b

Please sign in to comment.