// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.

//
// Office UI Fabric
// --------------------------------------------------
// Font definitions


// Font weights.
$ms-font-name: "Segoe UI" !default;


// Font paths.
$ms-font-directory:         "https://static2.sharepointonline.com/files/fabric/assets/fonts/" !default;
$ms-font-path-arabic:       "segoeui-arabic" !default;
$ms-font-path-cyrillic:     "segoeui-cyrillic" !default;
$ms-font-path-easteuropean: "segoeui-easteuropean" !default;
$ms-font-path-greek:        "segoeui-greek" !default;
$ms-font-path-hebrew:       "segoeui-hebrew" !default;
$ms-font-path-vietnamese:   "segoeui-vietnamese" !default;
$ms-font-path-westeuropean: "segoeui-westeuropean" !default;


/*
  Your use of the content in the files referenced here are subject to the terms of the license at http://aka.ms/fabric-font-license
*/

// Mixins to generate @font-face rules for unique languages.
@mixin SegoeUILight($ms-font-language, $ms-font-path) {
  @font-face {
    font-family: "#{$ms-font-name} #{$ms-font-language}";
    src: local("Segoe UI Light"),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-light.woff2') format('woff2'),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-light.woff') format('woff'),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-light.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
  }
}

@mixin SegoeUISemilight($ms-font-language, $ms-font-path) {
  @font-face {
    font-family: "#{$ms-font-name} #{$ms-font-language}";
    src: local("Segoe UI Semilight"),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-semilight.woff2') format('woff2'),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-semilight.woff') format('woff'),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-semilight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
  }
}

@mixin SegoeUIRegular($ms-font-language, $ms-font-path) {
  @font-face {
    font-family: "#{$ms-font-name} #{$ms-font-language}";
    src: local("Segoe UI"),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-regular.woff2') format('woff2'),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-regular.woff') format('woff'),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
}

@mixin SegoeUISemibold($ms-font-language, $ms-font-path) {
  @font-face {
    font-family: "#{$ms-font-name} #{$ms-font-language}";
    src: local("Segoe UI Semibold"),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-semibold.woff2') format('woff2'),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-semibold.woff') format('woff'),
         url('#{$ms-font-directory}/#{$ms-font-path}/segoeui-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
  }
}

// Mixins to generate language-specific font faces.
@mixin SegoeUIArabicLight {
  @include SegoeUILight("Arabic", $ms-font-path-arabic);
}
@mixin SegoeUIArabicRegular {
  @include SegoeUIRegular("Arabic", $ms-font-path-arabic);
}
@mixin SegoeUIArabicSemibold {
  @include SegoeUISemibold("Arabic", $ms-font-path-arabic);
}
@mixin SegoeUIArabicSemilight {
  @include SegoeUISemilight("Arabic", $ms-font-path-arabic);
}

@mixin SegoeUICyrillicLight {
  @include SegoeUILight("Cyrillic", $ms-font-path-cyrillic);
}
@mixin SegoeUICyrillicRegular {
  @include SegoeUIRegular("Cyrillic", $ms-font-path-cyrillic);
}
@mixin SegoeUICyrillicSemibold {
  @include SegoeUISemibold("Cyrillic", $ms-font-path-cyrillic);
}
@mixin SegoeUICyrillicSemilight {
  @include SegoeUISemilight("Cyrillic", $ms-font-path-cyrillic);
}

@mixin SegoeUIEastEuropeanLight {
  @include SegoeUILight("EastEuropean", $ms-font-path-easteuropean);
}
@mixin SegoeUIEastEuropeanRegular {
  @include SegoeUIRegular("EastEuropean", $ms-font-path-easteuropean);
}
@mixin SegoeUIEastEuropeanSemibold {
  @include SegoeUISemibold("EastEuropean", $ms-font-path-easteuropean);
}
@mixin SegoeUIEastEuropeanSemilight {
  @include SegoeUISemilight("EastEuropean", $ms-font-path-easteuropean);
}

@mixin SegoeUIGreekLight {
  @include SegoeUILight("Greek", $ms-font-path-greek);
}
@mixin SegoeUIGreekRegular {
  @include SegoeUIRegular("Greek", $ms-font-path-greek);
}
@mixin SegoeUIGreekSemibold {
  @include SegoeUISemibold("Greek", $ms-font-path-greek);
}
@mixin SegoeUIGreekSemilight {
  @include SegoeUISemilight("Greek", $ms-font-path-greek);
}

@mixin SegoeUIHebrewLight {
  @include SegoeUILight("Hebrew", $ms-font-path-hebrew);
}
@mixin SegoeUIHebrewRegular {
  @include SegoeUIRegular("Hebrew", $ms-font-path-hebrew);
}
@mixin SegoeUIHebrewSemibold {
  @include SegoeUISemibold("Hebrew", $ms-font-path-hebrew);
}
@mixin SegoeUIHebrewSemilight {
  @include SegoeUISemilight("Hebrew", $ms-font-path-hebrew);
}

@mixin SegoeUIVietnameseLight {
  @include SegoeUILight("Vietnamese", $ms-font-path-vietnamese);
}
@mixin SegoeUIVietnameseRegular {
  @include SegoeUIRegular("Vietnamese", $ms-font-path-vietnamese);
}
@mixin SegoeUIVietnameseSemibold {
  @include SegoeUISemibold("Vietnamese", $ms-font-path-vietnamese);
}
@mixin SegoeUIVietnameseSemilight {
  @include SegoeUISemilight("Vietnamese", $ms-font-path-vietnamese);
}

@mixin SegoeUIWestEuropeanLight {
  @include SegoeUILight("WestEuropean", $ms-font-path-westeuropean);
}
@mixin SegoeUIWestEuropeanRegular {
  @include SegoeUIRegular("WestEuropean", $ms-font-path-westeuropean);
}
@mixin SegoeUIWestEuropeanSemibold {
  @include SegoeUISemibold("WestEuropean", $ms-font-path-westeuropean);
}
@mixin SegoeUIWestEuropeanSemilight {
  @include SegoeUISemilight("WestEuropean", $ms-font-path-westeuropean);
}
