Hi,
this should work (in terms of How to use configs in pytesseract):
import os
import pytesseract
from PIL import Image
# configuration
pytesseract.pytesseract.tesseract_cmd = r"f:\win64_llvm\bin\tesseract.exe"
os.environ["TESSDATA_PREFIX"] = r"f:\Project-Personal\tessdata_best\tessdata"
custom_configs = r'-c hocr_font_type=1'
# OCR
img = Image.open(r"image.png")
hocr = pytesseract.image_to_pdf_or_hocr(img, extension='hocr', config=custom_configs)
But AFAIR tesseract 4.x does not provide info about font type.