<commit_before>﻿using System;
using System.Collections.Generic;
using UnityEngine;

namespace FairyGUI
{
    /// <summary>
    /// 
    /// </summary>
    public class DynamicFont : BaseFont
    {
        Font _font;
        int _size;
        float _ascent;
        float _lineHeight;
        float _scale;
        TextFormat _format;
        FontStyle _style;
        bool _boldVertice;
        CharacterInfo _char;
        CharacterInfo _lineChar;
        bool _gotLineChar;

        public DynamicFont()
        {
            this.canTint = true;
            this.keepCrisp = true;
            this.customOutline = true;
            this.shader = ShaderConfig.textShader;
        }

        override public void Dispose()
        {
            Font.textureRebuilt -= textureRebuildCallback;<commit_msg>recover API  new DynamicFont(name, font)<commit_after>﻿using System;
using System.Collections.Generic;
using UnityEngine;

namespace FairyGUI
{
    /// <summary>
    /// 
    /// </summary>
    public class DynamicFont : BaseFont
    {
        Font _font;
        int _size;
        float _ascent;
        float _lineHeight;
        float _scale;
        TextFormat _format;
        FontStyle _style;
        bool _boldVertice;
        CharacterInfo _char;
        CharacterInfo _lineChar;
        bool _gotLineChar;

        public DynamicFont()
        {
            this.canTint = true;
            this.keepCrisp = true;
            this.customOutline = true;
            this.shader = ShaderConfig.textShader;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="font"></param>
        /// <returns></returns>
        public DynamicFont(string name, Font font) : this()
        {
            this.name = name;
            this.nativeFont = font;
        }

        override public void Dispose()
        {
            Font.textureRebuilt -= textureRebuildCallback;
{'fraction_non_alphanumeric': 0.09355828220858896, 'fraction_numerical': 0.0, 'mean_word_length': 1.6163101604278074, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7472464', 'n_tokens_mistral': 543, 'n_tokens_neox': 528, 'n_words': 124}