font-splitter icon indicating copy to clipboard operation
font-splitter copied to clipboard

Generated CSS containing bad linefeeds

Open danny0838 opened this issue 5 years ago • 1 comments

Thank you for making this tool. However, when using this tool to split HanaMin, the generated CSS seems to contain bad linefeeds that cause the browser failed to load the fonts, like the below snippet:

/**
 * Font Splitter
 * https://github.com/VdustR/font-splitter
 */

@font-face {
  font-family: 花園明朝A

;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('花園明朝A Regular

'), local('HanaMinA

'), url(HanaMinA.Basic-Latin.woff2) format('woff2');
  unicode-range: U+0, U+8-9, U+d, U+1d, U+20-7e;
}

danny0838 avatar Feb 24 '20 05:02 danny0838

Thanks for the feedback and sorry about that I just see this issue so lately.

I'll check the problem ASAP. You can try hanamin for now if it satisfies your requirement.

VdustR avatar Mar 14 '20 21:03 VdustR