directwrite 0.1.4

A safe abstraction for interacting with DirectWrite, intended initially to be used with direct2d for easy text rendering.
Documentation
use winapi::um::dwrite::IDWriteFont;
use wio::com::ComPtr;

pub struct Font {
    ptr: ComPtr<IDWriteFont>,
}

impl Font {
    pub unsafe fn from_raw(raw: *mut IDWriteFont) -> Self {
        Font {
            ptr: ComPtr::from_raw(raw),
        }
    }

    pub unsafe fn get_raw(&self) -> *mut IDWriteFont {
        self.ptr.as_raw()
    }
}

unsafe impl Send for Font {}
unsafe impl Sync for Font {}