import { BareFontInfo } from './fontInfo.js';

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
function createBareFontInfoFromValidatedSettings(options, pixelRatio, ignoreEditorZoom) {
    const fontFamily = options.get(58 /* EditorOption.fontFamily */);
    const fontWeight = options.get(62 /* EditorOption.fontWeight */);
    const fontSize = options.get(61 /* EditorOption.fontSize */);
    const fontFeatureSettings = options.get(60 /* EditorOption.fontLigatures */);
    const fontVariationSettings = options.get(63 /* EditorOption.fontVariations */);
    const lineHeight = options.get(75 /* EditorOption.lineHeight */);
    const letterSpacing = options.get(72 /* EditorOption.letterSpacing */);
    return BareFontInfo._create(fontFamily, fontWeight, fontSize, fontFeatureSettings, fontVariationSettings, lineHeight, letterSpacing, pixelRatio, ignoreEditorZoom);
}

export { createBareFontInfoFromValidatedSettings };
