Skip to content

Releases: rishi-raj-jain/astro-font

astro-font@1.1.0

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 15 Apr 15:25

With astro-font@^1.1.0, the library now:

  • has an (optional) Astro integration which takes care of bundling all the fetched fonts in __astro_font_generated__ directory in your static bundle. Use it via:
// File: astro.config.*
+  import { astroFont } from 'astro-font/integration'
  // ...
  integrations: [
+  astroFont()
  ]
  // ...
  • ensures if it has write access to write fetched font files locally

astro-font@1.0.0

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 26 Jan 13:13

With astro-font@^1.0.0, the library now ensures that the basePath specified in the font configuration exists, and the font name specified is enclosed under quotes which allows whitespaces in the name of the font.

astro-font@0.1.81

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 04 Aug 09:32

In astro-font@^0.1.81, the support for locally hosted fonts in local development environments have been introduced. Simply the checks for https: have been extended to http:. Also, the type definitions for style and weight attribute per configuration has been updated to support string, and string and number respectively.

astro-font@0.0.80

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 06 Apr 08:01

In astro-font@^0.0.80, the CSS font parser for fonts loading over CDN such as Google Fonts, TypeKit, etc. has improved. It's now able to map over each attribute of font-face property returned by CDN, and creates an equivalent CSS.

To create in-browser like requests, each outgoing request is appended with the 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' header. This helps obtain the unicode-range which optimizes the in-browser font downloading as if the page doesn't use any character in that range, the font is not downloaded at all.

astro-font@0.0.79

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 05 Apr 06:59

In astro-font@^0.0.79, there are type values introduced for the following CSS properties, allowing you to choose the values based on standard web practices in your IDE.

To keep it backward compatible, any kind of string or number value is allowed.

astro-font@0.0.78

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 15 Mar 08:31

astro-font@0.0.77

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 20 Jan 12:09

astro-font@0.0.76

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 19 Jan 12:18
  • introduce per config verbose to create less noise in terminals

astro-font@0.0.75

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 18 Jan 12:21
  • introduce fallbackName per config flag to allow customizing fallback font's name

astro-font@0.0.74

Choose a tag to compare

@rishi-raj-jain rishi-raj-jain released this 18 Jan 12:20
  • only use pathe for relativizing the paths to get POSIX like output for font paths (thanks to @florian-lefebvre for suggesting it & @pi0 for making pathe)