
pub struct Factory {
    ptr: ComPtr<IDWriteFactory>,
}

impl Factory {
    pub fn new() -> Result<Factory, DWriteError> {
        unsafe {
            let mut ptr: *mut IDWriteFactory = ptr::null_mut();