use crate::pdf::document::PdfDocument;
use crate::pdf::document::fonts::PdfFontBuiltin;
use crate::pdf::font::PdfFont;
impl<'a> PdfFont<'a> {
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::times_roman() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn times_roman(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::TimesRoman)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::times_bold() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn times_bold(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::TimesBold)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::times_italic() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn times_italic(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::TimesItalic)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::times_bold_italic() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn times_bold_italic(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::TimesBoldItalic)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::helvetica() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn helvetica(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::Helvetica)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::helvetica_bold() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn helvetica_bold(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::HelveticaBold)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::helvetica_oblique() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn helvetica_oblique(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::HelveticaOblique)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::helvetica_bold_oblique() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn helvetica_bold_oblique(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::HelveticaBoldOblique)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::courier() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn courier(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::Courier)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::courier_bold() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn courier_bold(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::CourierBold)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::courier_oblique() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn courier_oblique(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::CourierOblique)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::courier_bold_oblique() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn courier_bold_oblique(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::CourierBoldOblique)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::symbol() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn symbol(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::Symbol)
}
#[deprecated(
since = "0.8.1",
note = "This function has been moved. Use the PdfFonts::zapf_dingbats() function instead."
)]
#[doc(hidden)]
#[inline]
pub fn zapf_dingbats(document: &'a PdfDocument<'a>) -> PdfFont<'a> {
#[allow(deprecated)]
Self::new_built_in(document, PdfFontBuiltin::ZapfDingbats)
}
}