mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-23 10:41:06 +08:00
Update source to v6.14.19098.19271
This commit is contained in:
@@ -2032,11 +2032,23 @@ unsigned int ON_FreeTypeGetGlyphMetrics(
|
||||
return glyph_index;
|
||||
}
|
||||
|
||||
|
||||
bool ON_FreeTypeGetGlyphOutline(
|
||||
const ON_FontGlyph* glyph,
|
||||
ON_OutlineFigure::Type figure_type,
|
||||
class ON_Outline& outline
|
||||
)
|
||||
{
|
||||
const unsigned int glyph_index = 0;
|
||||
return ON_FreeTypeGetGlyphOutline(glyph, glyph_index, figure_type, outline);
|
||||
}
|
||||
|
||||
bool ON_FreeTypeGetGlyphOutline(
|
||||
const ON_FontGlyph* glyph,
|
||||
unsigned int glyph_index,
|
||||
ON_OutlineFigure::Type figure_type,
|
||||
class ON_Outline& outline
|
||||
)
|
||||
{
|
||||
outline = ON_Outline::Unset;
|
||||
|
||||
@@ -2061,9 +2073,12 @@ bool ON_FreeTypeGetGlyphOutline(
|
||||
}
|
||||
}
|
||||
|
||||
const unsigned int glyph_index = glyph->FontGlyphIndex();
|
||||
if (glyph_index <= 0)
|
||||
return false;
|
||||
if (0 == glyph_index)
|
||||
{
|
||||
glyph_index = glyph->FontGlyphIndex();
|
||||
if (glyph_index <= 0)
|
||||
return false;
|
||||
}
|
||||
|
||||
FT_Face ft_face = (FT_Face)(ON_Font::FreeTypeFace(font));
|
||||
if (nullptr == ft_face)
|
||||
|
||||
Reference in New Issue
Block a user