Skip to content

Commit

Permalink
[Document] Increased <h1> font size
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-manias committed Oct 19, 2024
1 parent 34d0078 commit de1f9d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/document/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
static const LONG MAXLOOP = 1000;

static const char glDefaultStyles[] =
"<template name=\"h1\"><p leading=\"1.5\" font-face=\"Noto Sans\" font-size=\"18pt\" font-style=\"bold\"><inject/></p></template>\n\
"<template name=\"h1\"><p leading=\"1.5\" font-face=\"Noto Sans\" font-size=\"22pt\" font-style=\"bold\"><inject/></p></template>\n\
<template name=\"h2\"><p leading=\"1.5\" font-face=\"Noto Sans\" font-size=\"16pt\" font-style=\"bold\"><inject/></p></template>\n\
<template name=\"h3\"><p leading=\"1.25\" font-face=\"Noto Sans\" font-size=\"14pt\" font-style=\"bold\"><inject/></p></template>\n\
<template name=\"h4\"><p leading=\"1.25\" font-face=\"Noto Sans\" font-size=\"14pt\"><inject/></p></template>\n\
Expand All @@ -25,7 +25,7 @@ static const Field * find_field(OBJECTPTR Object, CSTRING Name, OBJECTPTR *Sourc

//********************************************************************************************************************

constexpr DOUBLE fast_hypot(DOUBLE Width, DOUBLE Height)
constexpr static DOUBLE fast_hypot(DOUBLE Width, DOUBLE Height)
{
if (Width > Height) std::swap(Width, Height);
if ((Height / Width) <= 1.5) return 5.0 * (Width + Height) / 7.0; // Fast hypot calculation accurate to within 1% for specific use cases.
Expand Down
10 changes: 5 additions & 5 deletions src/document/tests/test-doc.fluid
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ function testDialog() crcTest('Dialog', 'dialog.rpl', 0x3551e8bf) end
function testFonts() crcTest('Fonts', 'fonts.rpl', 0x293c9498) end
function testImages() crcTest('Images', 'images.rpl', 0xb7301c70) end
function testLayout() crcTest('Layout', 'layout.rpl', 0x1e4d9640) end
function testLinks1() crcTest('Links1', 'links.rpl', 0xb7e1a934) end
function testLinks2() crcTest('Links2', 'links.rpl?font=Noto Sans&font-size=16', 0x898505f8) end
function testLinks1() crcTest('Links1', 'links.rpl', 0x01e1daf0) end
function testLinks2() crcTest('Links2', 'links.rpl?font=Noto Sans&font-size=16', 0x729fe850) end
function testLists() crcTest('Lists', 'lists.rpl', 0xa466f7e9) end
function testLogic() crcTest('Logic', 'logic.rpl', 0x766bfadb) end
function testLogic() crcTest('Logic', 'logic.rpl', 0x085f7d00) end
function testParagraphs() crcTest('Paragraphs', 'paragraphs.rpl', 0xa3b93738) end
function testTables() crcTest('Tables', 'tables.rpl', 0x6dad4c39) end
function testWidgets() crcTest('Widgets', 'widgets.rpl', 0xa18b67ea) end
function testTables() crcTest('Tables', 'tables.rpl', 0x23e9a622) end
function testWidgets() crcTest('Widgets', 'widgets.rpl', 0xe3137ec7) end

-----------------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit de1f9d0

Please sign in to comment.