LCOV - code coverage report
Current view: top level - gfx/sfntly/cpp/src/sfntly/table/bitmap - ebsc_table.cc (source / functions) Hit Total Coverage
Test: output.info Lines: 0 44 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 29 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright 2011 Google Inc. All Rights Reserved.
       3             :  *
       4             :  * Licensed under the Apache License, Version 2.0 (the "License");
       5             :  * you may not use this file except in compliance with the License.
       6             :  * You may obtain a copy of the License at
       7             :  *
       8             :  *      http://www.apache.org/licenses/LICENSE-2.0
       9             :  *
      10             :  * Unless required by applicable law or agreed to in writing, software
      11             :  * distributed under the License is distributed on an "AS IS" BASIS,
      12             :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      13             :  * See the License for the specific language governing permissions and
      14             :  * limitations under the License.
      15             :  */
      16             : 
      17             : #include "sfntly/table/bitmap/ebsc_table.h"
      18             : 
      19             : namespace sfntly {
      20             : /******************************************************************************
      21             :  * EbscTable class
      22             :  ******************************************************************************/
      23           0 : EbscTable::~EbscTable() {
      24           0 : }
      25             : 
      26           0 : int32_t EbscTable::Version() {
      27           0 :   return data_->ReadFixed(Offset::kVersion);
      28             : }
      29             : 
      30           0 : int32_t EbscTable::NumSizes() {
      31           0 :   return data_->ReadULongAsInt(Offset::kNumSizes);
      32             : }
      33             : 
      34           0 : EbscTable::EbscTable(Header* header, ReadableFontData* data)
      35           0 :     : Table(header, data) {
      36           0 : }
      37             : 
      38             : /******************************************************************************
      39             :  * EbscTable::BitmapScaleTable class
      40             :  ******************************************************************************/
      41           0 : EbscTable::BitmapScaleTable::~BitmapScaleTable() {
      42           0 : }
      43             : 
      44           0 : EbscTable::BitmapScaleTable::BitmapScaleTable(ReadableFontData* data)
      45           0 :     : SubTable(data) {
      46           0 : }
      47             : 
      48           0 : int32_t EbscTable::BitmapScaleTable::PpemX() {
      49           0 :   return data_->ReadByte(Offset::kBitmapScaleTable_ppemX);
      50             : }
      51             : 
      52           0 : int32_t EbscTable::BitmapScaleTable::PpemY() {
      53           0 :   return data_->ReadByte(Offset::kBitmapScaleTable_ppemY);
      54             : }
      55             : 
      56           0 : int32_t EbscTable::BitmapScaleTable::SubstitutePpemX() {
      57           0 :   return data_->ReadByte(Offset::kBitmapScaleTable_substitutePpemX);
      58             : }
      59             : 
      60           0 : int32_t EbscTable::BitmapScaleTable::SubstitutePpemY() {
      61           0 :   return data_->ReadByte(Offset::kBitmapScaleTable_substitutePpemY);
      62             : }
      63             : 
      64             : /******************************************************************************
      65             :  * EbscTable::Builder class
      66             :  ******************************************************************************/
      67           0 : EbscTable::Builder::~Builder() {
      68           0 : }
      69             : 
      70           0 : CALLER_ATTACH EbscTable::Builder* EbscTable::Builder::CreateBuilder(
      71             :     Header* header, WritableFontData* data) {
      72           0 :   EbscTableBuilderPtr builder = new EbscTable::Builder(header, data);
      73           0 :   return builder.Detach();
      74             : }
      75             : 
      76           0 : EbscTable::Builder::Builder(Header* header, WritableFontData* data)
      77           0 :     : Table::Builder(header, data) {
      78           0 : }
      79             : 
      80           0 : EbscTable::Builder::Builder(Header* header, ReadableFontData* data)
      81           0 :     : Table::Builder(header, data) {
      82           0 : }
      83             : 
      84             : CALLER_ATTACH
      85           0 : FontDataTable* EbscTable::Builder::SubBuildTable(ReadableFontData* data) {
      86           0 :   EbscTablePtr output = new EbscTable(header(), data);
      87           0 :   return output.Detach();
      88             : }
      89             : 
      90           0 : void EbscTable::Builder::SubDataSet() {
      91             :   // NOP
      92           0 : }
      93             : 
      94           0 : int32_t EbscTable::Builder::SubDataSizeToSerialize() {
      95           0 :   return 0;
      96             : }
      97             : 
      98           0 : bool EbscTable::Builder::SubReadyToSerialize() {
      99           0 :   return false;
     100             : }
     101             : 
     102           0 : int32_t EbscTable::Builder::SubSerialize(WritableFontData* new_data) {
     103             :   UNREFERENCED_PARAMETER(new_data);
     104           0 :   return 0;
     105             : }
     106             : 
     107             : }  // namespace sfntly

Generated by: LCOV version 1.13