Skip to content

AI-native design editor. Open-source Figma alternative.

3.2 KB
Raw Blame
// Generated by `bun run generate:emoji-metrics`; do not edit.
// Copyright 2022 The Noto Project Authors (https://github.com/notofonts/symbols)
// Licensed under the SIL Open Font License, Version 1.1 (packages/core/assets/NotoSansSymbols-OFL.txt).

import type { OutlineCommand } from './glyphs'

/**
 * The frame Figma draws a keycap with: Noto Sans Symbols' combining enclosing keycap (U+20E3),
 * in em with y down from the baseline. It has no advance and is centred where the key's
 * character ends.
 */
export const KEYCAP_FRAME: readonly OutlineCommand[] = [
  {
    type: 'M',
    x: -0.335,
    y: 0.01
  },
  {
    type: 'Q',
    x1: -0.374,
    y1: 0.01,
    x: -0.398,
    y: -0.0135
  },
  {
    type: 'Q',
    x1: -0.422,
    y1: -0.037,
    x: -0.422,
    y: -0.076
  },
  {
    type: 'L',
    x: -0.422,
    y: -0.746
  },
  {
    type: 'Q',
    x1: -0.422,
    y1: -0.785,
    x: -0.398,
    y: -0.8085
  },
  {
    type: 'Q',
    x1: -0.374,
    y1: -0.832,
    x: -0.335,
    y: -0.832
  },
  {
    type: 'L',
    x: 0.336,
    y: -0.832
  },
  {
    type: 'Q',
    x1: 0.375,
    y1: -0.832,
    x: 0.3985,
    y: -0.8085
  },
  {
    type: 'Q',
    x1: 0.422,
    y1: -0.785,
    x: 0.422,
    y: -0.746
  },
  {
    type: 'L',
    x: 0.422,
    y: -0.076
  },
  {
    type: 'Q',
    x1: 0.422,
    y1: -0.037,
    x: 0.3985,
    y: -0.0135
  },
  {
    type: 'Q',
    x1: 0.375,
    y1: 0.01,
    x: 0.336,
    y: 0.01
  },
  {
    type: 'L',
    x: -0.335,
    y: 0.01
  },
  {
    type: 'Z'
  },
  {
    type: 'M',
    x: -0.197,
    y: -0.122
  },
  {
    type: 'L',
    x: 0.198,
    y: -0.122
  },
  {
    type: 'Q',
    x1: 0.236,
    y1: -0.122,
    x: 0.251,
    y: -0.137
  },
  {
    type: 'Q',
    x1: 0.266,
    y1: -0.152,
    x: 0.266,
    y: -0.19
  },
  {
    type: 'L',
    x: 0.266,
    y: -0.631
  },
  {
    type: 'Q',
    x1: 0.266,
    y1: -0.669,
    x: 0.251,
    y: -0.6845
  },
  {
    type: 'Q',
    x1: 0.236,
    y1: -0.7,
    x: 0.198,
    y: -0.7
  },
  {
    type: 'L',
    x: -0.197,
    y: -0.7
  },
  {
    type: 'Q',
    x1: -0.234,
    y1: -0.7,
    x: -0.2495,
    y: -0.684
  },
  {
    type: 'Q',
    x1: -0.265,
    y1: -0.668,
    x: -0.265,
    y: -0.631
  },
  {
    type: 'L',
    x: -0.265,
    y: -0.19
  },
  {
    type: 'Q',
    x1: -0.265,
    y1: -0.153,
    x: -0.2495,
    y: -0.1375
  },
  {
    type: 'Q',
    x1: -0.234,
    y1: -0.122,
    x: -0.197,
    y: -0.122
  },
  {
    type: 'Z'
  },
  {
    type: 'M',
    x: 0.398,
    y: -0.052
  },
  {
    type: 'L',
    x: 0.398,
    y: -0.733
  },
  {
    type: 'Q',
    x1: 0.398,
    y1: -0.765,
    x: 0.3785,
    y: -0.7865
  },
  {
    type: 'Q',
    x1: 0.359,
    y1: -0.808,
    x: 0.327,
    y: -0.808
  },
  {
    type: 'L',
    x: -0.355,
    y: -0.808
  },
  {
    type: 'L',
    x: -0.282,
    y: -0.748
  },
  {
    type: 'L',
    x: 0.247,
    y: -0.748
  },
  {
    type: 'Q',
    x1: 0.27,
    y1: -0.748,
    x: 0.2845,
    y: -0.7405
  },
  {
    type: 'Q',
    x1: 0.299,
    y1: -0.733,
    x: 0.3065,
    y: -0.7175
  },
  {
    type: 'Q',
    x1: 0.314,
    y1: -0.702,
    x: 0.314,
    y: -0.678
  },
  {
    type: 'L',
    x: 0.314,
    y: -0.093
  },
  {
    type: 'L',
    x: 0.398,
    y: -0.052
  },
  {
    type: 'Z'
  }
]