HEX
Server: Apache/2.4.61 (Ubuntu)
System: Linux hosting106 7.0.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 7.0.12-1 (2026-06-09T21:07Z) x86_64
User: clinicadentalargarate.com (1193)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/cursos.ril.es/vendor/phenx/php-font-lib/www/test.php
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <link rel="stylesheet" href="css/style.css" />
  <link rel="stylesheet" href="css/blitzer/jquery-ui-1.8.14.custom.css" />
</head>
<body>
<pre>
<?php 

require_once "../classes/Font_Binary_Stream.php";
require_once "../classes/Font.php";

$t = microtime(true);

// RW methods
$values = array(
  array(Font_Binary_Stream::uint8, 9),
  array(Font_Binary_Stream::int8, 9),
  array(Font_Binary_Stream::uint16, 5040),
  array(Font_Binary_Stream::int16, -5040),
  array(Font_Binary_Stream::uint32, 8400245),
  array(Font_Binary_Stream::int32, 8400245),
  array(Font_Binary_Stream::shortFrac, 1.0),
  array(Font_Binary_Stream::Fixed, -155.54),
  array(Font_Binary_Stream::FWord, -5040),
  array(Font_Binary_Stream::uFWord, 5040),
  array(Font_Binary_Stream::F2Dot14, -56.54),
  array(Font_Binary_Stream::longDateTime, "2011-07-21 21:37:00"),
  array(Font_Binary_Stream::char, "A"),
);
/*
$stream = new Font_Binary_Stream();
foreach($values as $value) {
  list($type, $data) = $value;
  
  $stream = new Font_Binary_Stream();
  $stream->setFile(Font_Binary_Stream::getTempFile());
  
  $stream->w($type, $data);
  $stream->seek(0);
  $new_data = $stream->r($type);
  
  if ($new_data !== $data) {
    echo "NOT OK \t $data \t => $new_data<br />";
  }
  else {
    echo "OK $type<br />";
  }
}*/

// font RW
$filename = "../fonts/DejaVuSansMono.ttf";
$filename_out = "$filename.2.ttf";

Font::$debug = true;
$font = Font::load($filename);
$font->parse();


$font->setSubset("(.apbiI,mn");
$font->reduce();

$font->open($filename_out, Font_Binary_Stream::modeWrite);
$font->encode(array("OS/2"));

?>

File size: <?php echo number_format(filesize($filename_out), 0, ".", " "); ?> bytes
Memory: <?php echo (memory_get_peak_usage(true) / 1024); ?>KB
Time: <?php echo round(microtime(true) - $t, 4); ?>s
</pre>
</body>
</html>