docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js
function getFontFamilyId(configName) {
    // Search for plugin configured font family
    var configFamily = $.grep(FAMILIES, function(family) {
      return family.config == configName;
    })[0];
    // Fallback to default font family
    return !!configFamily ? configFamily.id : 0;
  }
function getFontFamilyId(configName) {
    // Search for plugin configured font family
    var configFamily = $.grep(FAMILIES, function(family) {
      return family.config == configName;
    })[0];
    // Fallback to default font family
    return !!configFamily ? configFamily.id : 0;
  }
function getFontFamilyId ( configName ) { // Search for plugin configured font family var configFamily = $ . grep ( FAMILIES , function ( family ) { return family . config == configName ; } ) [ 0 ] ; // Fallback to default font family return ! ! configFamily ? configFamily . id : 0 ; }
Return the correct id for a font-family config key Default to first font-family
Return the correct id for a font - family config key Default to first font - family