When trying to generate font with large charset (700+ characters) I get following error:
UnhandledPromiseRejectionWarning: Error: Command failed: C:\Users\user\AppData\Roaming\npm\node_modules\msdf-bmfont-xml\bin\win32\msdfgen.exe msdf -format text -stdout -size 42 42 -translate 0 36 -pxrange 4 -defineshape "{7.77, -3.948; 7.77, -14.406; (7.056, -12.264); 6.006, -9.828; (4.956, -7.392); 3.654, -5.25; 3.654, -5.25; (3.192, -6.342); 2.814, -6.972; (2.436, -7.602); 1.764, -8.442; 1.764, -8.442; (3.738, -11.13); 5.187, -14.616; (6.636, -18.102); 7.728, -22.68; 7.728, -22.68; (6.258, -22.638); 5.04, -22.554; (3.822, -22.47); 2.94, -22.344; 2.94, -22.344; 2.94, -25.578; (3.78, -25.452); 5.04, -25.368; (6.3, -25.284); 7.77, -25.242; 7.77, -25.242; (7.77, -28.14); 7.707, -30.072; (7.644, -32.004); 7.434, -33.222; 7.434, -33.222; (8.4, -33.012); 9.261, -32.928; (10.122, -32.844); 10.584, -32.886; 10.584, -32.886; (11.298, -32.97); 11.403, -32.655; (11.508, -32.34); 10.836, -31.878; 10.836, -31.878; (10.542, -31.668); 10.5, -31.437; (10.458, -31.206); 10.458, -30.87; 10.458, -30.87; 10.458, -25.284; (11.298, -25.326); 12.033, -25.389; (12.768, -25.452); 13.482, -25.578; 13.482, -25.578; 13.482, -24.57; 14.532, -26.208; (14.952, -25.956); 15.351, -25.704; (15.75, -25.452); 16.128, -25.158; 16.128, -25.158; (16.464, -25.746); 16.8, -26.334; (17.136, -26.922); 17.472, -27.762; 17.472, -27.762; (17.766, -28.35); 17.976, -28.854; (18.186, -29.358); 18.375, -29.883; (18.564, -30.408); 18.732, -31.017; (18.9, -31.626); 19.11, -32.466; 19.11, -32.466; (19.95, -32.004); 20.685, -31.731; (21.42, -31.458); 22.134, -31.248; 22.134, -31.248; (23.31, -30.912); 22.26, -30.408; 22.26, -30.408; (21.924, -30.24); 21.651, -29.925; (21.378, -29.61); 21.042, -28.98; 21.042, -28.98; (20.16, -27.342); 19.53, -26.208; (18.9, -25.074); 18.102, -23.772; 18.102, -23.772; (18.522, -23.436); 18.942, -23.121; (19.362, -22.806); 19.782, -22.47; 19.782, -22.47; (21.63, -24.864); 22.176, -27.594; 22.176, -27.594; (22.89, -27.048); 23.436, -26.775; (23.982, -26.502); 24.528, -26.334; 24.528, -26.334; (25.368, -26.082); 24.57, -25.284; 24.57, -25.284; (24.444, -25.158); 24.255, -24.906; (24.066, -24.654); 23.562, -23.898; 23.562, -23.898; (22.764, -22.68); 21.567, -21.021; (20.37, -19.362); 18.648, -17.094; 18.648, -17.094; (19.404, -17.178); 20.265, -17.262; (21.126, -17.346); 22.176, -17.472; 22.176, -17.472; (21.966, -18.018); 21.735, -18.459; (21.504, -18.9); 21.294, -19.236; 21.294, -19.236; 23.478, -19.95; (24.192, -18.606); 24.78, -17.304; (25.368, -16.002); 25.914, -14.49; 25.914, -14.49; 23.646, -13.65; (23.562, -13.902); 23.394, -14.406; (23.226, -14.91); 23.016, -15.498; 23.016, -15.498; 17.934, -14.616; (17.346, -14.532); 16.8, -14.343; (16.254, -14.154); 15.918, -13.944; 15.918, -13.944; (15.582, -14.952); 15.267, -15.624; (14.952, -16.296); 14.532, -16.926; 14.532, -16.926; (14.868, -16.926); 15.204, -16.926; (15.54, -16.926); 15.876, -16.968; 15.876, -16.968; (16.59, -17.85); 17.115, -18.564; (17.64, -19.278); 18.27, -20.16; 18.27, -20.16; (16.842, -21.378); 15.729, -22.155; (14.616, -22.932); 13.482, -23.73; 13.482, -23.73; 13.482, -22.344; (12.894, -22.428); 12.138, -22.491; (11.382, -22.554); 10.458, -22.638; 10.458, -22.638; 10.458, -18.27; 12.222, -19.152; (13.062, -17.64); 13.692, -16.443; (14.322, -15.246); 14.994, -13.944; 14.994, -13.944; 12.432, -12.6; (12.222, -13.314); 11.697, -14.469; (11.172, -15.624); 10.458, -16.842; 10.458, -16.842; 10.458, -3.948; (10.458, -2.352); 10.521, -0.357; (10.584, 1.638); 10.752, 3.654; 10.752, 3.654; 7.35, 3.654; (7.56, 1.638); 7.665, -0.357; (7.77, -2.352); 7.77, -3.948; 7.77, -3.948; }{32.718, -11.928; 32.718, -11.928; (32.508, -12.558); 32.151, -13.23; (31.794, -13.902); 31.206, -14.616; 31.206, -14.616; 34.23, -15.582; (34.734, -14.742); 35.133, -14.049; (35.532, -13.356); 36.036, -12.39; 36.036, -12.39; 34.566, -11.97; (36.246, -12.012); 37.422, -12.096; (38.598, -12.18); 39.186, -12.264; 39.186, -12.264; 39.186, -9.156; (38.64, -9.24); 37.947, -9.282; (37.254, -9.324); 36.162, -9.366; (35.07, -9.408); 33.453, -9.408; (31.836, -9.408); 29.526, -9.408; 29.526, -9.408; (30.03, -7.308); 30.912, -5.292; 30.912, -5.292; (31.878, -6.258); 32.718, -7.224; (33.558, -8.19); 34.146, -9.24; 34.146, -9.24; (34.692, -8.862); 35.49, -8.442; (36.288, -8.022); 36.75, -7.812; 36.75, -7.812; (37.548, -7.476); 37.527, -7.119; (37.506, -6.762); 36.666, -6.72; 36.666, -6.72; (36.288, -6.678); 35.868, -6.426; (35.448, -6.174); 35.028, -5.796; 35.028, -5.796; (34.314, -5.082); 33.642, -4.431; (32.97, -3.78); 32.298, -3.15; 32.298, -3.15; (32.928, -2.31); 33.453, -1.785; (33.978, -1.26); 34.44, -0.882; 34.44, -0.882; (35.028, -0.42); 35.406, -0.252; (35.784, -0.084); 36.036, -0.378; (36.288, -0.672); 36.435, -1.512; (36.582, -2.352); 36.666, -3.864; 36.666, -3.864; (37.38, -3.276); 38.178, -2.919; (38.976, -2.562); 39.69, -2.478; 39.69, -2.478; (39.186, 0.084); 38.661, 1.512; (38.136, 2.94); 37.569, 3.528; (37.002, 4.116); 36.351, 4.011; (35.7, 3.906); 34.902, 3.318; 34.902, 3.318; (33.684, 2.436); 32.529, 1.365; (31.374, 0.294); 30.282, -1.218; 30.282, -1.218; (28.77, 0.168); 27.279, 1.344; (25.788, 2.52); 24.192, 3.444; 24.192, 3.444; (23.73, 2.646); 22.911, 1.869; (22.092, 1.092); 21.126, 0.672; 21.126, 0.672; (22.806, 0.462); 24.864, -0.672; (26.922, -1.806); 28.938, -3.444; 28.938, -3.444; (28.35, -4.662); 27.846, -6.237; (27.342, -7.812); 27.048, -9.408; 27.048, -9.408; 21.042, -9.408; (20.958, -8.232); 20.79, -7.14; 20.79, -7.14; (21.462, -6.804); 22.218, -6.405; (22.974, -6.006); 23.73, -5.586; (24.486, -5.166); 25.137, -4.788; (25.788, -4.41); 26.25, -4.116; 26.25, -4.116; 23.898, -1.596; (22.932, -2.52); 21.987, -3.276; (21.042, -4.032); 20.202, -4.62; 20.202, -4.62; (19.614, -2.478); 18.438, -0.378; (17.262, 1.722); 15.288, 3.696; 15.288, 3.696; (14.616, 3.192); 13.734, 2.688; (12.852, 2.184); 11.97, 1.764; 11.97, 1.764; (13.272, 1.092); 14.364, -0.063; (15.456, -1.218); 16.296, -2.709; (17.136, -4.2); 17.703, -5.922; (18.27, -7.644); 18.522, -9.408; 18.522, -9.408; (16.926, -9.366); 15.561, -9.303; (14.196, -9.24); 13.44, -9.156; 13.44, -9.156; 13.44, -12.264; (14.406, -12.138); 16.254, -12.012; (18.102, -11.886); 20.076, -11.886; 20.076, -11.886; 26.628, -11.886; (26.166, -15.036); 25.851, -18.123; (25.536, -21.21); 25.41, -24.486; 25.41, -24.486; (25.326, -26.586); 25.221, -28.014; (25.116, -29.442); 25.011, -30.45; (24.906, -31.458); 24.759, -32.193; (24.612, -32.928); 24.444, -33.642; 24.444, -33.642; (25.242, -33.432); 26.334, -33.264; (27.426, -33.096); 28.266, -33.054; 28.266, -33.054; (29.106, -33.012); 29.148, -32.676; (29.19, -32.34); 28.56, -31.878; 28.56, -31.878; (28.35, -31.71); 28.203, -31.584; (28.056, -31.458); 27.993, -31.269; (27.93, -31.08); 27.909, -30.807; (27.888, -30.534); 27.888, -30.114; 27.888, -30.114; (27.93, -28.896); 27.951, -27.447; (27.972, -25.998); 28.014, -24.78; 28.014, -24.78; 29.19, -26.334; (29.4, -26.166); 29.61, -26.019; (29.82, -25.872); 30.03, -25.704; 30.03, -25.704; (30.408, -26.292); 30.765, -26.964; (31.122, -27.636); 31.458, -28.476; 31.458, -28.476; (31.71, -29.106); 31.92, -29.61; (32.13, -30.114); 32.298, -30.639; (32.466, -31.164); 32.634, -31.752; (32.802, -32.34); 33.012, -33.18; 33.012, -33.18; (33.852, -32.718); 34.587, -32.445; (35.322, -32.172); 36.036, -31.962; 36.036, -31.962; (37.086, -31.668); 36.162, -31.122; 36.162, -31.122; (35.868, -30.912); 35.595, -30.618; (35.322, -30.324); 34.944, -29.694; 34.944, -29.694; (34.02, -28.056); 33.348, -26.901; (32.676, -25.746); 31.878, -24.318; 31.878, -24.318; (32.256, -24.024); 32.655, -23.709; (33.054, -23.394); 33.516, -22.974; 33.516, -22.974; (34.65, -24.654); 35.154, -25.788; (35.658, -26.922); 35.868, -27.93; 35.868, -27.93; (36.666, -27.426); 37.422, -27.048; (38.178, -26.67); 38.682, -26.502; 38.682, -26.502; (39.228, -26.334); 39.228, -26.019; (39.228, -25.704); 38.514, -25.578; 38.514, -25.578; (38.304, -25.536); 38.031, -25.284; (37.758, -25.032); 37.254, -24.234; 37.254, -24.234; (37.002, -23.814); 36.456, -23.058; (35.91, -22.302); 35.238, -21.42; (34.566, -20.538); 33.852, -19.614; (33.138, -18.69); 32.508, -17.934; 32.508, -17.934; (33.516, -17.934); 34.293, -17.976; (35.07, -18.018); 36.162, -18.102; 36.162, -18.102; (35.49, -19.404); 34.986, -20.076; 34.986, -20.076; 37.296, -21.42; (38.052, -20.076); 38.787, -18.732; (39.522, -17.388); 40.236, -16.002; 40.236, -16.002; 37.632, -14.742; (37.506, -15.078); 37.38, -15.414; (37.254, -15.75); 37.044, -16.128; 37.044, -16.128; 31.668, -15.582; (31.08, -15.498); 30.576, -15.393; (30.072, -15.288); 29.736, -15.078; 29.736, -15.078; (29.484, -16.548); 28.476, -17.892; 28.476, -17.892; (28.854, -17.892); 29.211, -17.913; (29.568, -17.934); 29.904, -17.934; 29.904, -17.934; (30.45, -18.606); 30.912, -19.215; (31.374, -19.824); 32.088, -20.874; 32.088, -20.874; (30.912, -21.966); 29.967, -22.743; (29.022, -23.52); 28.014, -24.234; 28.014, -24.234; (28.014, -20.958); 28.308, -17.829; (28.602, -14.7); 29.064, -11.886; 29.064, -11.886; (30.072, -11.886); 30.975, -11.886; (31.878, -11.886); 32.718, -11.928; }"
The command line is too long.
The font is STHeiti TC Medium. Hovewer, I tried the same charset with Simhei and it worked fine