41 // Left margin of the radical (px)
42 const int gRadicalLeftMargin = 3;
43 // Bottom padding of the radical (px)
44 const int gRadicalBasePad = 3;
45 // Threshold above which the radical shape is modified to look nice with big bases (%)
46 const float gThresholdBaseHeight = 1.5f;
47 // Radical width (%)
48 const float gRadicalWidth = 0.75f;
49 // Horizontal position of the bottom point of the radical (%)
50 const float gRadicalBottomPointXPos= 0.5f;
51 // Horizontal position of the top left point of the radical (%)
52 const float gRadicalTopLeftPointXPos = 0.8f;
53 // Vertical position of the top left point of the radical (%)
54 const float gRadicalTopLeftPointYPos = 0.625f;
55 // Vertical shift of the left end point of the radical (%)
56 const float gRadicalLeftEndYShift = 0.05f;
57 // Root padding around the base (%)
58 const float gRootPadding = 0.2f;
59 // Additional bottom root padding (%)
60 const float gRootBottomPadding = 0.2f;
61
62 // Radical line thickness (%)
63 const float gRadicalLineThickness = 0.02f;
64 // Radical thick line thickness (%)
65 const float gRadicalThickLineThickness = 0.1f;
41// Extra space on the left for the radical sign (px)
42const int gRadicalLeftExtra = 3;
43// Lower the radical sign's bottom point (px)
44const int gRadicalBottomPointLower = 3;
45// Threshold above which the radical shape is modified to look nice with big bases (em)
46const float gThresholdBaseHeightEms = 1.5f;
47// Front width (em)
48const float gFrontWidthEms = 0.75f;
49// Horizontal position of the bottom point of the radical (* frontWidth)
50const float gRadicalBottomPointXFront = 0.5f;
51// Horizontal position of the top left point of the radical "dip" (* frontWidth)
52const float gRadicalDipLeftPointXFront = 0.8f;
53// Vertical position of the top left point of the radical "dip" (* baseHeight)
54const float gRadicalDipLeftPointYPos = 0.625f;
55// Vertical shift of the left end point of the radical (em)
56const float gRadicalLeftEndYShiftEms = 0.05f;
57// Root padding around the base (em) (mroot padding-top/left from mathml.css)
58const float gRootPaddingEms = 0.2f;
59// Additional bottom root padding if baseHeight > threshold (em)
60const float gBigRootBottomPaddingEms = 0.2f;
61
62// Radical line thickness (em)
63const float gRadicalLineThicknessEms = 0.02f;
64// Radical thick line thickness (em)
65const float gRadicalThickLineThicknessEms = 0.1f;