@@ -1519,92 +1519,6 @@ function imagepolygon($image, array $points, int $num_points, int $color): void
1519
1519
}
1520
1520
1521
1521
1522
- /**
1523
- * Loads a character encoding vector from a file and changes the fonts
1524
- * encoding vector to it. As a PostScript fonts default vector lacks most of
1525
- * the character positions above 127, you'll definitely want to change this
1526
- * if you use a language other than English.
1527
- *
1528
- * If you find yourself using this function all the time, a much
1529
- * better way to define the encoding is to set ps.default_encoding in
1530
- * the configuration file
1531
- * to point to the right encoding file and all fonts you load will
1532
- * automatically have the right encoding.
1533
- *
1534
- * @param resource $font_index A font resource, returned by imagepsloadfont.
1535
- * @param string $encodingfile The exact format of this file is described in T1libs documentation.
1536
- * T1lib comes with two ready-to-use files,
1537
- * IsoLatin1.enc and
1538
- * IsoLatin2.enc.
1539
- * @throws ImageException
1540
- *
1541
- */
1542
- function imagepsencodefont ($ font_index , string $ encodingfile ): void
1543
- {
1544
- error_clear_last ();
1545
- $ result = \imagepsencodefont ($ font_index , $ encodingfile );
1546
- if ($ result === false ) {
1547
- throw ImageException::createFromPhpError ();
1548
- }
1549
- }
1550
-
1551
-
1552
- /**
1553
- * Extend or condense a font (font_index), if
1554
- * the value of the extend parameter is less
1555
- * than one you will be condensing the font.
1556
- *
1557
- * @param resource $font_index A font resource, returned by imagepsloadfont.
1558
- * @param float $extend Extension value, must be greater than 0.
1559
- * @throws ImageException
1560
- *
1561
- */
1562
- function imagepsextendfont ($ font_index , float $ extend ): void
1563
- {
1564
- error_clear_last ();
1565
- $ result = \imagepsextendfont ($ font_index , $ extend );
1566
- if ($ result === false ) {
1567
- throw ImageException::createFromPhpError ();
1568
- }
1569
- }
1570
-
1571
-
1572
- /**
1573
- * imagepsfreefont frees memory used by a PostScript
1574
- * Type 1 font.
1575
- *
1576
- * @param resource $font_index A font resource, returned by imagepsloadfont.
1577
- * @throws ImageException
1578
- *
1579
- */
1580
- function imagepsfreefont ($ font_index ): void
1581
- {
1582
- error_clear_last ();
1583
- $ result = \imagepsfreefont ($ font_index );
1584
- if ($ result === false ) {
1585
- throw ImageException::createFromPhpError ();
1586
- }
1587
- }
1588
-
1589
-
1590
- /**
1591
- * Slant a given font.
1592
- *
1593
- * @param resource $font_index A font resource, returned by imagepsloadfont.
1594
- * @param float $slant Slant level.
1595
- * @throws ImageException
1596
- *
1597
- */
1598
- function imagepsslantfont ($ font_index , float $ slant ): void
1599
- {
1600
- error_clear_last ();
1601
- $ result = \imagepsslantfont ($ font_index , $ slant );
1602
- if ($ result === false ) {
1603
- throw ImageException::createFromPhpError ();
1604
- }
1605
- }
1606
-
1607
-
1608
1522
/**
1609
1523
* imagerectangle creates a rectangle starting at
1610
1524
* the specified coordinates.
0 commit comments