Categoría: PHP

Si estás trabajando en algún proyecto personalizado para alguna empresa o para wordpress, esta clase puede ser útil ya que el control de las fuentes (letras) de tu página web recae sobre php y no css

Clase Php para controlar la fuente de la página web

Código en PHP:


header_face = $face;
         $this->header_size = $size;
     }
     function set_body($face, $size)
     {
         $this->body_face = $face;
         $this->body_size = $size;
     }
     function set_footer($face, $size)
     {
         $this->footer_face = $face;
         $this->footer_size = $size;
     }
     function header_text($text)
     {
         echo '';
         echo $text;
         echo "";
     }
     function footer_text($text)
     {
         echo '';
         echo $text;
         echo "";
     }
     function body_text($text)
     {
         echo '';
         echo $text;
         echo "";
     }
}
$style = new MyPageFont();
$style->header_text("
this is a header"); $style->set_header("Tahoma", 6); $style->header_text("
this is a modified header"); $style->body_text("
this is a body"); $style->footer_text("
this is a footer"); ?>

Utilizamos cookies para aportar una mejor experiencia al usuario en nuestro sitio web. Si sigues navegando, entendemos que aceptas su uso Más información