EddieUp / antd-table-saveas-excel

antd table to excel
53 stars 13 forks source link

How to change default font family? #33

Open yeonkyungnae opened 8 months ago

yeonkyungnae commented 8 months ago

I want change font family, but there are no options in IStyle. Can I change default font family?

export type IStyle = {
  height?: number;
  width?: number;
  border?: boolean;
  borderColor?: string;
  background?: string;
  fontSize?: number;
  fontName?: string;
  color?: string;
  bold?: boolean;
  i?: boolean;
  u?: boolean;
  h?: IHorizontal;
  indent?: number;
  shrinkToFit?: boolean;
  textRotation?: number;
  v?: IVertical;
  wrapText?: boolean;
};

image

jagvaandanzan commented 3 weeks ago

Actually there is an option to change fontFamily. fontName?: string; change it. it works