mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 21:26:01 +01:00
Comment fixes
This commit is contained in:
parent
531ee53b1a
commit
ff679a310b
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
#include "document.h"
|
||||
|
||||
/**
|
||||
* Calculate the page size according to the corrent scaling and rotation if
|
||||
* Calculate the page size according to the current scaling and rotation if
|
||||
* desired.
|
||||
*
|
||||
* @param document the document
|
||||
|
|
|
@ -33,8 +33,8 @@ struct zathura_document_s {
|
|||
void* data; /**< Custom data */
|
||||
zathura_adjust_mode_t adjust_mode; /**< Adjust mode (best-fit, width) */
|
||||
int page_offset; /**< Page offset */
|
||||
double cell_width; /**< width of a page cell in the document (not ransformed by scale and rotation) */
|
||||
double cell_height; /**< height of a page cell in the document (not ransformed by scale and rotation) */
|
||||
double cell_width; /**< width of a page cell in the document (not transformed by scale and rotation) */
|
||||
double cell_height; /**< height of a page cell in the document (not transformed by scale and rotation) */
|
||||
unsigned int view_width; /**< width of current viewport */
|
||||
unsigned int view_height; /**< height of current viewport */
|
||||
zathura_device_factors_t device_factors; /**< x and y device scale factors (for e.g. HiDPI) */
|
||||
|
|
|
@ -317,8 +317,8 @@ set_font_from_property(cairo_t* cairo, zathura_t* zathura, cairo_font_weight_t w
|
|||
const char* family = pango_font_description_get_family(descr);
|
||||
|
||||
/* get font size: can be points or absolute.
|
||||
* absolute units: value = 10*PANGO_SCALE = 10 (unscaled) device units (logical pixels)
|
||||
* point units: value = 10*PANGO_SCALE = 10 points = 10*(font dpi config / 72) device units */
|
||||
* absolute units: example: value 10*PANGO_SCALE = 10 (unscaled) device units (logical pixels)
|
||||
* point units: example: value 10*PANGO_SCALE = 10 points = 10*(font dpi config / 72) device units */
|
||||
double size = pango_font_description_get_size(descr) / PANGO_SCALE;
|
||||
|
||||
/* convert point size to device units */
|
||||
|
|
Loading…
Reference in a new issue