Registers foundation fonts
@param mixed $fonts the array or string name to register.
763478
public static function registerFonts($fonts = array())
    {
        if (empty($fonts))
            return;

        foreach ($fonts as $font) {
            Icon::registerIconFontSet($font);
        }
    }
625854
protected function registerAliases()
    {
        foreach ($this->aliases as $abstract => $aliases) {
            foreach ((array) $aliases as $alias) {
                $this->app->alias($alias, $abstract);
            }
        }
    }
577564
public static function is_google_font( $fontname ) {
		if ( is_string( $fontname ) ) {
			$fonts = self::get_google_fonts();
			return isset( $fonts[ $fontname ] );
		}
		return false;
	}
511712
public function enqueue_fonts() {

		// Check if we need to exit early.
		if ( empty( self::$fields ) || ! is_array( self::$fields ) ) {
			return;
		}

		foreach ( self::$fields as $field ) {

			// Process typography fields.
			if ( isset( $field['type'] ) && 'typography' === $field['type'] ) {

				// Check if we've got everything we need.
				if ( ! isset( $field['kirki_config'] ) || ! isset( $field['settings'] ) ) {
					continue;
				}
				$value = self::get_option( $field['kirki_config'], $field['settings'] );
				if ( isset( $value['font-family'] ) ) {
					$url              = '//fonts.googleapis.com/css?family=' . str_replace( ' ', '+', $value['font-family'] );
					$value['variant'] = ( isset( $value['variant'] ) ) ? $value['variant'] : '';
					$url             .= ( empty( $value['variant'] ) ) ? '' : ':' . $value['variant'];

					$key = md5( $value['font-family'] . $value['variant'] );

					// Check that the URL is valid. we're going to use transients to make this faster.
					$url_is_valid = get_transient( $key );

					// If transient does not exist.
					if ( false === $url_is_valid ) {
						$response = wp_remote_get( 'https:' . $url );
						if ( ! is_array( $response ) ) {

							// The url was not properly formatted,
							// cache for 12 hours and continue to the next field.
							set_transient( $key, null, 12 * HOUR_IN_SECONDS );
							continue;
						}

						// Check the response headers.
						if ( isset( $response['response'] ) && isset( $response['response']['code'] ) ) {
							if ( 200 === $response['response']['code'] ) {

								// URL was ok. Set transient to true and cache for a week.
								set_transient( $key, true, 7 * 24 * HOUR_IN_SECONDS );
								$url_is_valid = true;
							}
						}
					}

					// If the font-link is valid, enqueue it.
					if ( $url_is_valid ) {
						wp_enqueue_style( $key, $url, array(), '1.0' );
					}
				}
			}
		}
	}
1244025
public void addSubstitutionFont(BaseFont font) {
        if (substitutionFonts == null)
            substitutionFonts = new ArrayList();
        substitutionFonts.add(font);
    }
1145014
private function registerAnnotations(array $annotations)
    {
        $kernel = $this
            ->container
            ->get('kernel');

        foreach ($annotations as $annotation) {
            AnnotationRegistry::registerFile($kernel
                ->locateResource($annotation)
            );
        }
    }
203273
public void registerFont(String name, String path) {
    try {
      _fonts.put(name, ((JavaAssets) assets()).requireResource(path).createFont());
    } catch (Exception e) {
      platform.reportError("Failed to load font [name=" + name + ", path=" + path + "]", e);
    }
  }
745697
public function register( $args = [ ] ) {
		foreach ( $this->getConfigKeys() as $contentType ) {
			$this->registerContentType(
				$contentType,
				$this->config->getSubConfig( $contentType )
			);
		}
	}
1368938
public static boolean registerFont(@NonNull ITypeface font) {
        validateFont(font);

        FONTS.put(font.getMappingPrefix(), font);
        return true;
    }
48400
public function registerAssets()
    {
        $view = $this->getView();
        $asset = NotyAsset::register($view);
        $asset->animateCss = $this->registerAnimateCss;
        $asset->buttonsCss = $this->registerButtonsCss;
        $asset->fontAwesomeCss = $this->enableIcon && $this->registerFontAwesomeCss;
    }
173110
public function setFont($font) {
        if (is_int($font)) {
            if ($font === 0) {
                $font = null;
            } else {
                $font = new CINFontPhp($font);
            }
        }

        $this->font = $font;
    }
572611
def set_fonts(font)
      font_name = Pathname.new(font).basename
      @pdf.font_families.update(
        "#{font_name}" => {
          normal: font,
          italic: font,
          bold: font,
          bold_italic: font
        }
      )
      @pdf.font(font_name)
    end
1069733
public function add_fonts(array $fonts){
    if ( !\defined('BBN_LIB_PATH') ){
      die('You must define BBN_LIB_PATH!');
    }
    if ( !is_dir(BBN_LIB_PATH . 'mpdf/mpdf/ttfonts/') ){
      die("You don't have the mpdf/mpdf/ttfonts directory.");
    }
    foreach ($fonts as $f => $fs) {
      // add to available fonts array
      foreach ( $fs as $i => $v ){
        if ( !empty($v) ){
          // check if file exists in mpdf/ttfonts directory
          if ( !is_file(BBN_LIB_PATH . 'mpdf/mpdf/ttfonts/' . basename($v)) ){
            \bbn\file\dir::copy($v, BBN_LIB_PATH . 'mpdf/mpdf/ttfonts/' . basename($v));
          }
          $fs[$i] = basename($v);
          if ( $i === 'R' ){
            array_push($this->pdf->available_unifonts, $f);
          }
          else {
            array_push($this->pdf->available_unifonts, $f.$i);
          }
        }
        else {
          unset($fs[$i]);
        }
      }
      // add to fontdata array
      $this->pdf->fontdata[$f] = $fs;
    }
    $this->pdf->default_available_fonts = $this->pdf->available_unifonts;
  }
388587
public static function registerIconFontSet($fontName, $forceCopyAssets = false)
    {
        if (!in_array($fontName, static::getAvailableIconFontSets())) {
            return false;
        }

        $fontPath = \Yii::getPathOfAlias('foundation.fonts.foundation_icons_' . $fontName);
        $fontUrl  = \Yii::app()->assetManager->publish($fontPath, true, -1, $forceCopyAssets);

        \Yii::app()->clientScript->registerCssFile($fontUrl . "/stylesheets/{$fontName}_foundicons.css");

        if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0')) {
            \Yii::app()->clientScript->registerCssFile($fontUrl . "/stylesheets/{$fontName}_foundicons_ie7.css");
        }
    }
577345
public void setFontNames(final SummernoteFontName... fontNames) {
        JsArrayString array = JavaScriptObject.createArray().cast();
        for (SummernoteFontName fontName : fontNames) {
            array.push(fontName.getName());
        }
        options.setFontNames(array);
    }
239814
function registerFont(folder) {
    var data = fs.readFileSync(folder + "/font.json", {encoding: "utf8"});
    var fontArray = JSON.parse(data);
    for (var i = 0, len = fontArray.length; i < len; i++) {
        var font = fontArray[i];
        font.path = folder;
        mdjson.Font.registerFont(font);
    }
}
766780
public function setFont($font) {

		if(false === is_string($font)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($font)), E_USER_ERROR);
		}

		$file = new File($font);

		if(false === $file -> exists()) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be an existing font', __METHOD__), E_USER_ERROR);
		}

		$this -> font = $file;

		return $this;
	}