cross-platform bitmap font implementation