Mega Code Archive
Use Php class to control the HTML page font
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 'header_face . '" size="' . $this->header_size . '">';
echo $text;
echo "";
}
function footer_text($text)
{
echo 'footer_face . '" size="' . $this->footer_size . '">';
echo $text;
echo "";
}
function body_text($text)
{
echo 'body_face . '" size="' . $this->body_size . '">';
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");
?>