mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2024-11-19 05:40:10 +01:00
font fix
This commit is contained in:
parent
f082bca6c9
commit
654f7742e4
@ -47,6 +47,21 @@
|
|||||||
#pdf-canvas {
|
#pdf-canvas {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
#font-select option {
|
||||||
|
font-size: 30px; /* Set the font size as desired */
|
||||||
|
}
|
||||||
|
|
||||||
|
#font-select option[value="Estonia"] {
|
||||||
|
font-family: 'Estonia', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#font-select option[value="Tangerine"] {
|
||||||
|
font-family: 'Tangerine', cursive;
|
||||||
|
}
|
||||||
|
|
||||||
|
#font-select option[value="Windsong"] {
|
||||||
|
font-family: 'Windsong', cursive;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@ -108,12 +123,11 @@
|
|||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|
||||||
const fontSelect = document.getElementById('font-select');
|
const fontSelect = document.getElementById('font-select');
|
||||||
fontSelect.addEventListener('change', (event) => {
|
fontSelect.addEventListener('change', (event) => {
|
||||||
const selectedFont = event.target.value;
|
const selectedFont = event.target.value;
|
||||||
fontSelect.style.fontFamily = selectedFont;
|
fontSelect.style.fontFamily = selectedFont;
|
||||||
});
|
});
|
||||||
|
fontSelect.style.fontFamily = fontSelect.value;
|
||||||
fontSelect.style.fontFamily = fontSelect.value; // Set the initial font family
|
|
||||||
|
|
||||||
const pdfUpload = document.querySelector('input[name=pdf-upload]');
|
const pdfUpload = document.querySelector('input[name=pdf-upload]');
|
||||||
const signatureUpload = document.querySelector('input[name=signature-upload]');
|
const signatureUpload = document.querySelector('input[name=signature-upload]');
|
||||||
|
Loading…
Reference in New Issue
Block a user