FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.71k stars 12.19k forks source link

Shims files do not match #12308

Closed homocomputeris closed 6 years ago

homocomputeris commented 6 years ago

Hi, shims.json and shims.yml do not match.

E.g. they both have

  [
    "bitbucket-square",
    "fab",
    "bitbucket"
  ],
bitbucket-square:
  name: bitbucket
  prefix: fab

but only the 1st has

  [
    "legal",
    null,
    "gavel"
  ],

Is it supposed to be like this?

robmadole commented 6 years ago

Yes, this is intentional. Those are not 1-for-1 equivalent.

homocomputeris commented 6 years ago

What are use cases for both of them, then?

robmadole commented 6 years ago

shims.yml is the hand-edited file that expresses our intent with renaming. It does not include brand changes "fab" or any of the "-o" renames because these are automated.

shims.json is the actual data that drives the output of the shims file include in FA5.