chromium/third_party/freetype-testing/src/fuzzing/src/utils/faceloader.cpp

// faceloader.cpp
//
//   Implementation of FaceLoader.
//
// Copyright 2018-2019 by
// Armin Hasitzka, David Turner, Robert Wilhelm, and Werner Lemberg.
//
// This file is part of the FreeType project, and may only be used,
// modified, and distributed under the terms of the FreeType project
// license, LICENSE.TXT.  By continuing to use, modify, or distribute
// this file you indicate that you have read the license and
// understand and accept it fully.


#include "utils/faceloader.h"

#include <cassert>

#include FT_FONT_FORMATS_H

#include "utils/logging.h"


  void
  freetype::FaceLoader::
  set_supported_font_format( FontFormat  format )
  {}


  void
  freetype::FaceLoader::
  set_library( FT_Library  library )
  {}


  void
  freetype::FaceLoader::
  set_raw_bytes( const uint8_t*  data,
                 size_t          size )
  {}

#ifdef HAVE_ARCHIVE
  void
  freetype::FaceLoader::
  set_data_is_tar_archive( bool  is_tar_archive )
  {
    data_is_tar_archive = is_tar_archive;
  }
#endif


  void
  freetype::FaceLoader::
  set_face_index( FT_Long  index )
  {}

    
  void
  freetype::FaceLoader::
  set_instance_index( FT_Long  index )
  {}


  FT_Long
  freetype::FaceLoader::
  get_num_faces()
  {}


  FT_Long
  freetype::FaceLoader::
  get_num_instances()
  {}


  freetype::Unique_FT_Face
  freetype::FaceLoader::
  load()
  {}


  freetype::Unique_FT_Face
  freetype::FaceLoader::
  load_face( FT_Long  face_index,
             FT_Long  instance_index )
  {}