public function display_sample_image($column, $post_id)
 {
     if ($column == 'preview') {
         $font = new FontSq_Font(get_post($post_id));
         $font->display_sample_raw();
     }
 }
 public function font_list($mceInit)
 {
     $fonts = FontSq_Font::get_installed_fonts();
     foreach ($fonts as $font) {
         if (!isset($mceInit['font_formats'])) {
             $mceInit['font_formats'] = '';
         }
         $mceInit['font_formats'] .= $font->title . '=' . $font->name . ';';
     }
     return $mceInit;
 }
    /**
     * Render the control's content.
     *
     * @since 3.4.0
     */
    public function render_content()
    {
        require_once sprintf('%s/../model/class.font.php', dirname(__FILE__));
        $this_default = $this->setting->default;
        ?>
		<label>
			<?php 
        if (!empty($this->label)) {
            ?>
				<span class="customize-control-title"><?php 
            echo esc_html($this->label);
            ?>
</span>
			<?php 
        }
        if (!empty($this->description)) {
            ?>
				<span class="description customize-control-description"><?php 
            echo $this->description;
            ?>
</span>
			<?php 
        }
        ?>

			<div class="customize-control-content font-customize-control">
				<select <?php 
        $this->link();
        ?>
>
					<?php 
        foreach (FontSq_Font::get_installed_fonts() as $font) {
            echo '<option value="' . esc_attr($font->name) . '"' . selected($this->value(), $font->name, false) . '>' . $font->family . '</option>';
        }
        ?>
				</select>
			</div>
		</label>
		<?php 
    }