mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0026769: Chinese letters are not translated
Added a condition to omit empty symbols
This commit is contained in:
parent
d71fcc9089
commit
be7d4aa2f9
@ -249,10 +249,15 @@ Standard_Boolean Font_BRepFont::renderGlyph (const Standard_Utf32Char theChar,
|
|||||||
return !theShape.IsNull();
|
return !theShape.IsNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FT_Outline& anOutline = myFTFace->glyph->outline;
|
||||||
|
|
||||||
|
if (!anOutline.n_contours)
|
||||||
|
return Standard_False;
|
||||||
|
|
||||||
TopLoc_Location aLoc;
|
TopLoc_Location aLoc;
|
||||||
TopoDS_Face aFaceDraft;
|
TopoDS_Face aFaceDraft;
|
||||||
myBuilder.MakeFace (aFaceDraft, mySurface, myPrecision);
|
myBuilder.MakeFace (aFaceDraft, mySurface, myPrecision);
|
||||||
FT_Outline& anOutline = myFTFace->glyph->outline;
|
|
||||||
// Get orientation is useless since it doesn't retrieve any in-font information and just computes orientation.
|
// Get orientation is useless since it doesn't retrieve any in-font information and just computes orientation.
|
||||||
// Because it fails in some cases - leave this to ShapeFix.
|
// Because it fails in some cases - leave this to ShapeFix.
|
||||||
//const FT_Orientation anOrient = FT_Outline_Get_Orientation (&anOutline);
|
//const FT_Orientation anOrient = FT_Outline_Get_Orientation (&anOutline);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user