PopTest\Font\FontTest::testOpenType PHP Method

testOpenType() public method

public testOpenType ( )
    public function testOpenType()
    {
        $f = new OpenType(__DIR__ . '/../tmp/bos.otf');
        $this->assertEquals(1000, $f->unitsPerEm);
        $this->assertEquals(750, $f->ascent);
        $this->assertEquals(-250, $f->descent);
        $this->assertEquals(-206, $f->bBox->xMin);
        $this->assertEquals(-303, $f->bBox->yMin);
        $this->assertEquals(2383, $f->bBox->xMax);
        $this->assertEquals(1038, $f->bBox->yMax);
        $this->assertEquals('BlackoakStd', $f->info->fullName);
    }